mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fix HasManyList::removeByID()
This commit is contained in:
parent
a76c9c3c5e
commit
267050171a
@ -63,7 +63,7 @@ class HasManyList extends RelationList {
|
||||
* @param $itemID The ID of the item to be removed
|
||||
*/
|
||||
function removeByID($itemID) {
|
||||
$item = $this->byID($item);
|
||||
$item = $this->byID($itemID);
|
||||
return $this->remove($item);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user