From 8f1cd010c07944542886623f0faf1bf877861f42 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 23 Dec 2008 06:10:06 +0000 Subject: Reload parent after adding a new item since the left/right pointers have changed. --- core/libraries/ORM_MPTT.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core') 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; -- cgit v1.2.3