Skip to content

Commit

Permalink
Null out relative_path_cache and relative_url_cache after we update
Browse files Browse the repository at this point in the history
the pointers in case the hierarchy was adversely affected by actions
when the MPTT pointers were desynced.  Fixes ticket #1235.
  • Loading branch information
bharat committed Jul 21, 2010
1 parent af8bb05 commit 2cf5198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gallery/helpers/gallery_task.php
Expand Up @@ -381,6 +381,8 @@ static function fix_mptt_set_right($id, $value) {
db::build()
->update("items")
->set("right_ptr", $value)
->set("relative_path_cache", null)
->set("relative_url_cache", null)
->where("id", "=", $id)
->execute();
}
Expand Down

0 comments on commit 2cf5198

Please sign in to comment.