diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-02 04:58:19 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-02 04:58:19 +0000 |
commit | a70f3bf38683af21f1e81ec1a5e74aa83ab46e38 (patch) | |
tree | d35ffdf7140397d4d5a52959ff3b3d2fc39280b8 /modules | |
parent | 01d00dfd8680c9e03fda9c4a0fb3dce04a88e2f8 (diff) |
Have the quick delete file "item_before_delete" so that search and
notification modules can do their thing. In addition, correct search
so it works properly and doesn't try to create an Item_id_Model class.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/search/helpers/search_event.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/search/helpers/search_event.php b/modules/search/helpers/search_event.php index da123dc9..83e65721 100644 --- a/modules/search/helpers/search_event.php +++ b/modules/search/helpers/search_event.php @@ -32,7 +32,9 @@ class search_event_Core { } static function item_before_delete($item) { - ORM::factory("item_id", $item->id)->delete_all(); + ORM::factory("search_record") + ->where("item_id", $item->id) + ->delete_all(); } static function item_related_update($item) { |