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:
Sam Minnee 2007-11-19 04:49:43 +00:00
parent ef5aabf666
commit 0d5b5b36de

View File

@ -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)