mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-25 00:05:45 -04:00
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!)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user