diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-17 12:51:27 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-17 12:51:27 -0700 |
commit | cd907c2b42f8b50ebe6d490aab42365e16deb258 (patch) | |
tree | b58350f7d7ffebeb91d5d9d2f273c0561625664b /modules/gallery/models | |
parent | 8a6556b30bc34d69284df6246f4010a8835f3bc2 (diff) |
Change model_cache::clear() API to clear everything. This prevents
old ORM relationships from hanging around, which was causing problems
when doing MPTT manipulations (resulting in incorrect permission
propagation-- very bad!)
Diffstat (limited to 'modules/gallery/models')
-rw-r--r-- | modules/gallery/models/item.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 6512e9e5..05c4e656 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -140,6 +140,7 @@ class Item_Model extends ORM_MPTT { $original_parent = $this->parent(); parent::move_to($target, true); + model_cache::clear(); $this->relative_path_cache = null; rename($original_path, $this->file_path()); |