From a5aacfa4a650ed5830331b8c81f68ea1625cd3ba Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 16 Jan 2010 18:10:40 -0800 Subject: Don't forget to save when we make insignificant chagnes only. --- modules/gallery/models/item.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index c007afeb..56ee321a 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -514,6 +514,10 @@ class Item_Model extends ORM_MPTT { parent::save(); module::event("item_updated", $original, $this); } + } else if (!empty($this->changed)) { + // Insignificant changes only. Don't fire events or do any special checking to try to keep + // this lightweight. + parent::save(); } return $this; -- cgit v1.2.3