Don't forget to save when we make insignificant chagnes only.

This commit is contained in:
Bharat Mediratta
2010-01-16 18:10:40 -08:00
parent 7f20f66079
commit a5aacfa4a6

View File

@@ -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;