diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 18:10:40 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 18:10:40 -0800 |
commit | a5aacfa4a650ed5830331b8c81f68ea1625cd3ba (patch) | |
tree | f13abbede3a9b005a488a8a85969f37b3ea3aa21 /modules/gallery/models | |
parent | 7f20f660791a8276e6f74232e6b941cf20c8c1a7 (diff) |
Don't forget to save when we make insignificant chagnes only.
Diffstat (limited to 'modules/gallery/models')
-rw-r--r-- | modules/gallery/models/item.php | 4 |
1 files changed, 4 insertions, 0 deletions
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; |