mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-04-19 12:09:16 -04:00
Don't forget to save when we make insignificant chagnes only.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user