Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX TableListField should only include CSS from the cms if the cms…

… exists.
  • Loading branch information...
commit fa999ca2de3df1feb9fe8149065dd525eda13e87 1 parent 4be8ab0
@simonwelsh simonwelsh authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 forms/TableListField.php
View
6 forms/TableListField.php
@@ -1049,8 +1049,10 @@ function ExportLink() {
function printall() {
Requirements::clear();
- Requirements::css(CMS_DIR . '/css/typography.css');
- Requirements::css(CMS_DIR . '/css/cms_right.css');
+ if(defined('CMS_DIR')) {
+ Requirements::css(CMS_DIR . '/css/typography.css');
+ Requirements::css(CMS_DIR . '/css/cms_right.css');
+ }
Requirements::css(SAPPHIRE_DIR . '/css/TableListField_print.css');
$this->cachedSourceItems = null;
Please sign in to comment.
Something went wrong with that request. Please try again.