mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed PHP notice in CheckboxSetField when transforming to readonly
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61164 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
09af15d382
commit
7912aa3b4a
@ -186,7 +186,7 @@ class CheckboxSetField extends OptionsetField {
|
||||
foreach($items as $item){
|
||||
if(is_array($item)) {
|
||||
$data[] = $item['Title'];
|
||||
} else if(is_array($this->source)&&$this->source[$item]) {
|
||||
} else if(is_array($this->source) && !empty($this->source[$item])) {
|
||||
$data[] = $this->source[$item];
|
||||
} else if(is_a($this->source, "ComponentSet")){
|
||||
//added for editable checkboxset.
|
||||
|
Loading…
Reference in New Issue
Block a user