diff --git a/modules/tagfaces/helpers/tagfaces_event.php b/modules/tagfaces/helpers/tagfaces_event.php index 77613304..9b9defb4 100644 --- a/modules/tagfaces/helpers/tagfaces_event.php +++ b/modules/tagfaces/helpers/tagfaces_event.php @@ -58,18 +58,24 @@ class tagfaces_event_Core { ->where("item_id", "=", $item->id) ->find_all(); if (count($existingFaces) > 0) { + /* ORM::factory("items_face") ->where("item_id", "=", $item->id) ->delete_all(); + */ + db::build()->delete("items_faces")->where("item_id", "=", $item->id)->execute(); } $existingNotes = ORM::factory("items_note") ->where("item_id", "=", $item->id) ->find_all(); if (count($existingNotes) > 0) { + /* ORM::factory("items_note") ->where("item_id", "=", $item->id) ->delete_all(); + */ + db::build()->delete("items_notes")->where("item_id", "=", $item->id)->execute(); } } }