summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-21 11:34:19 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-21 11:34:19 -0700
commit2cf51983535ffa498c38b02328e30fe307ec6827 (patch)
tree85f737eb210f850400398ac4a38a2a60a88ae90f /modules
parentaf8bb05d5d4d13ae9fdda889c705fdd6dca0666c (diff)
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_task.php2
1 files changed, 2 insertions, 0 deletions
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();
}