summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/ORM_MPTT.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-17 12:51:27 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-17 12:51:27 -0700
commitcd907c2b42f8b50ebe6d490aab42365e16deb258 (patch)
treeb58350f7d7ffebeb91d5d9d2f273c0561625664b /modules/gallery/libraries/ORM_MPTT.php
parent8a6556b30bc34d69284df6246f4010a8835f3bc2 (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/libraries/ORM_MPTT.php')
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index 46280d95..e371f159 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -285,6 +285,7 @@ class ORM_MPTT_Core extends ORM {
// Lets reload to get the changes.
$this->reload();
+ $target->reload();
return $this;
}