mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Detecting DataObjectSet for readonly transformations in CheckboxSetField (thanks martijn, #4527)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@85758 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8b73690f23
commit
47db2ab55e
@ -217,7 +217,7 @@ class CheckboxSetField extends OptionsetField {
|
||||
$data[] = $item['Title'];
|
||||
} elseif(is_array($this->source) && !empty($this->source[$item])) {
|
||||
$data[] = $this->source[$item];
|
||||
} elseif(is_a($this->source, 'ComponentSet')) {
|
||||
} elseif(is_a($this->source, 'DataObjectSet')) {
|
||||
$data[] = $sourceTitles[$item];
|
||||
} else {
|
||||
$data[] = $item;
|
||||
|
Loading…
x
Reference in New Issue
Block a user