mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-01 04:31:03 -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:
@@ -32,7 +32,7 @@ class ORM extends ORM_Core {
|
||||
}
|
||||
|
||||
public function save() {
|
||||
model_cache::clear($this->object_name, $this->{$this->primary_key}, $this->primary_key);
|
||||
model_cache::clear();
|
||||
$result = parent::save();
|
||||
$this->original = $this->object;
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user