From 2cf51983535ffa498c38b02328e30fe307ec6827 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 21 Jul 2010 11:34:19 -0700 Subject: Null out relative_path_cache and relative_url_cache after we update the pointers in case the hierarchy was adversely affected by actions when the MPTT pointers were desynced. Fixes ticket #1235. --- modules/gallery/helpers/gallery_task.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/gallery/helpers/gallery_task.php b/modules/gallery/helpers/gallery_task.php index bc128b3e..96ea7c0d 100644 --- a/modules/gallery/helpers/gallery_task.php +++ b/modules/gallery/helpers/gallery_task.php @@ -381,6 +381,8 @@ class gallery_task_Core { db::build() ->update("items") ->set("right_ptr", $value) + ->set("relative_path_cache", null) + ->set("relative_url_cache", null) ->where("id", "=", $id) ->execute(); } -- cgit v1.2.3