summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-23 06:10:06 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-23 06:10:06 +0000
commit8f1cd010c07944542886623f0faf1bf877861f42 (patch)
tree53a7ec2f432ae3f70375404d97e684fdae0959ff
parent360fbda04c8882efa053171ffb07fd76efaac940 (diff)
Reload parent after adding a new item since the left/right pointers have changed.
-rw-r--r--core/libraries/ORM_MPTT.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php
index 28147d80..e8411db0 100644
--- a/core/libraries/ORM_MPTT.php
+++ b/core/libraries/ORM_MPTT.php
@@ -63,6 +63,7 @@ class ORM_MPTT_Core extends ORM {
$this->parent_id = $parent->id;
$this->level = $parent->level + 1;
$this->save();
+ $parent->reload();
} catch (Exception $e) {
$this->unlock();
throw $e;