Permalink
Browse files

BUGFIX Fixed TableListField->print() - was unsetting $cachedSourceIte…

…ms instead of null'ing it, which breaks later access to the property (from r101080)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@111583 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent a729b86 commit a96cb319d3baf5decd4568eae5418139ab2c1de8 @sminnee sminnee committed Oct 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/TableListField.php
View
@@ -1008,7 +1008,7 @@ function printall() {
Requirements::css(CMS_DIR . '/css/cms_right.css');
Requirements::css(SAPPHIRE_DIR . '/css/TableListField_print.css');
- unset($this->cachedSourceItems);
+ $this->cachedSourceItems = null;
$oldShowPagination = $this->showPagination;
$this->showPagination = false;

0 comments on commit a96cb31

Please sign in to comment.