app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-6.0.0.pre.rc5 vs app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-6.0.0.pre.rc6

- old
+ new

@@ -121,20 +121,18 @@ # Updates page # # * fetches page via before filter # def update - # stores old page_layout value, because unfurtunally rails @page.changes does not work here. - @old_page_layout = @page.page_layout if @page.update(page_params) @notice = Alchemy.t("Page saved", name: @page.name) @while_page_edit = request.referer.include?("edit") unless @while_page_edit @tree = serialized_page_tree end else - configure + render :configure end end # Fetches page via before filter, destroys it and redirects to page tree def destroy