BUGFIX: TableListField_Item::SelectOptionClasses() can use it parent protected variable.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@105858 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2010-05-28 02:36:42 +00:00 committed by Sam Minnee
parent eecac2f069
commit 72b93b7502

View File

@ -91,6 +91,7 @@ class TableListField extends FormField {
/**
* @var array See {@link SelectOptions()}
*/
protected $selectOptions = array();
/**
@ -1477,7 +1478,7 @@ class TableListField_Item extends ViewableData {
*/
function SelectOptionClasses(){
$tagArray = array('markingcheckbox');
$options = $this->parent->selectOptions;
$options = $this->parent->SelectOptions();
if(!empty($options)){
foreach($options as $optionKey => $optionTitle){
if($optionKey !== 'all' && $optionKey !== 'none'){