From a96cb319d3baf5decd4568eae5418139ab2c1de8 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 04:44:58 +0000 Subject: [PATCH] BUGFIX Fixed TableListField->print() - was unsetting $cachedSourceItems 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 --- forms/TableListField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index c1d122ddd..59d532cf8 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -1008,7 +1008,7 @@ JS 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;