mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 46348 via svnmerge from
svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.1 ........ r46348 | jshipman | 2007-12-05 12:32:08 +1300 (Wed, 05 Dec 2007) | 1 line fixed notices ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46815 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fa9a258bd2
commit
f630e571af
@ -85,7 +85,8 @@ class CheckboxSetField extends OptionsetField {
|
||||
|
||||
$itemID = $this->id() . "_" . ereg_replace('[^a-zA-Z0-9]+','',$key);
|
||||
|
||||
if($items){
|
||||
$checked ="";
|
||||
if(isset($items)){
|
||||
in_array($key,$items) ? $checked = " checked=\"checked\"" : $checked = "";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user