diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-27 08:32:12 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-27 08:32:12 -0800 |
commit | bccb6fc02146fb07cd1b472a90092e78e2259e91 (patch) | |
tree | 78dcb1717e020ebc65fec8a4ba452ab1193d2a27 /modules/tag/models | |
parent | 07e83718a0cd1bcef1f0a0546ffcb7cb6a1735ae (diff) |
Clean up validation the check for duplicate names or slugs, finish converting the rest API to Kohana 2.4
Diffstat (limited to 'modules/tag/models')
-rw-r--r-- | modules/tag/models/tag.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index b2ce9eda..d0d2117c 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -108,7 +108,9 @@ class Tag_Model extends ORM { $result = parent::delete(); if ($related_item_ids) { - foreach (ORM::factory("item")->in("id", array_keys($related_item_ids))->find_all() as $item) { + foreach (ORM::factory("item") + ->where("id", "IN", array_keys($related_item_ids)) + ->find_all() as $item) { module::event("item_related_update", $item); } } |