BUGFIX Fix HasManyList::removeByID()

This commit is contained in:
Andrew O'Neil 2012-02-09 14:33:00 +13:00
parent a76c9c3c5e
commit 267050171a

View File

@ -63,7 +63,7 @@ class HasManyList extends RelationList {
* @param $itemID The ID of the item to be removed * @param $itemID The ID of the item to be removed
*/ */
function removeByID($itemID) { function removeByID($itemID) {
$item = $this->byID($item); $item = $this->byID($itemID);
return $this->remove($item); return $this->remove($item);
} }