Feature #20490

Add method for saving and closing a record.

Added by Jeff Segars over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-05-22
Due date:
% Done:

0%

PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

t3lib_frontendedit has methods for the common tcemain actions that are performed on a record (save, hide, new, etc) but saving and closing a record is missing.

When editing page content, saving and closing is identical to just saving. Page records are slightly different though. When a page record is saved, we want to reload the editing form again. When a page record is saved and closed, we don't have any content to display; instead we want to figure out what the new URL is (after a change of page title, etc) and redirect the browser to that URL.

The attached patch adds a doSaveAndClose() method that is just a wrapper around doSave() so that the actual content is saved correctly. Having this separate method allows the frontend editing views to properly handle the saving of page records.

(issue imported from #M11167)

0011167.diff View (942 Bytes) Administrator Admin, 2009-05-22 17:23

0011167_v2.diff View (941 Bytes) Administrator Admin, 2009-05-27 22:25

History

#1 Updated by Jeff Segars over 10 years ago

Added v2 patch that applies cleanly.

#2 Updated by Jeff Segars over 10 years ago

Committed to trunk in r5524.

Also available in: Atom PDF