mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed ->Groups()->setByCheckboxSetField for situation when nothing is checked (parents upgrade issue)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@45103 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ef5aabf666
commit
0d5b5b36de
@ -844,7 +844,7 @@ class Member_GroupSet extends ComponentSet {
|
||||
|
||||
// else we should be removing all from the necessary groups.
|
||||
} else {
|
||||
$remove = $sourceItems;
|
||||
$remove = array_keys($sourceItems);
|
||||
}
|
||||
|
||||
if($add)
|
||||
|
Loading…
Reference in New Issue
Block a user