diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index f8a5fa7c8..850d3cceb 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -87,7 +87,8 @@ - Snippets can now take up to 9 optional parameters as replacements similar to the SQL macro. Thanks to Andreas Ljunggren. - bugfix [ 990710 ] Users can't change own passwords - + - Fixed a bug where the user was redirected to the clipboard after cutting a + page. 6.0.3 diff --git a/lib/WebGUI/Operation/Page.pm b/lib/WebGUI/Operation/Page.pm index 905fba0aa..f9b6c8b82 100644 --- a/lib/WebGUI/Operation/Page.pm +++ b/lib/WebGUI/Operation/Page.pm @@ -243,7 +243,9 @@ sub www_cutPage { } elsif (WebGUI::Page::canEdit()) { $page = WebGUI::Page->getPage($session{page}{pageId}); + my $parentId = $page->get("parentId") || 1; $page->cut; + WebGUI::Session::refreshPageInfo($parentId); return ""; } else { return WebGUI::Privilege::insufficient();