mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: TableListField_Item::SelectOptionClasses() can use it parent protected variable. (from r105858)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112503 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4c2ff4bd0a
commit
092a3c1c26
@ -91,6 +91,7 @@ class TableListField extends FormField {
|
|||||||
/**
|
/**
|
||||||
* @var array See {@link SelectOptions()}
|
* @var array See {@link SelectOptions()}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
protected $selectOptions = array();
|
protected $selectOptions = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1477,7 +1478,7 @@ class TableListField_Item extends ViewableData {
|
|||||||
*/
|
*/
|
||||||
function SelectOptionClasses(){
|
function SelectOptionClasses(){
|
||||||
$tagArray = array('markingcheckbox');
|
$tagArray = array('markingcheckbox');
|
||||||
$options = $this->parent->selectOptions;
|
$options = $this->parent->SelectOptions();
|
||||||
if(!empty($options)){
|
if(!empty($options)){
|
||||||
foreach($options as $optionKey => $optionTitle){
|
foreach($options as $optionKey => $optionTitle){
|
||||||
if($optionKey !== 'all' && $optionKey !== 'none'){
|
if($optionKey !== 'all' && $optionKey !== 'none'){
|
||||||
|
Loading…
Reference in New Issue
Block a user