Project

General

Profile

Actions

Feature #20490

closed

Add method for saving and closing a record.

Added by Jeff Segars over 15 years ago. Updated over 14 years ago.

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

0%

Estimated time:
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)


Files

0011167.diff (942 Bytes) 0011167.diff Administrator Admin, 2009-05-22 17:23
0011167_v2.diff (941 Bytes) 0011167_v2.diff Administrator Admin, 2009-05-27 22:25
Actions

Also available in: Atom PDF