Project

General

Profile

Actions

Bug #83090

closed

Save and close on file editing (from filelist) doesn't close

Added by Tymoteusz Motylewski almost 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2017-11-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you edit a text file from within FileList, and use "save and close" you will not be redirected back to list.

The issue doesn't exist in v8.7

in v8 the hidden fields looked like:

<input type="hidden" name="file[editfile]0[target]" value="57">
<input type="hidden" name="redirect" value="/typo3/index.php?route=%2Ffile%2Feditcontent&amp;.....">

While in v9 we have:
<input type="hidden" name="data[editfile]0[target]" value="57">
<input type="hidden" name="data[editfile]0[redirect]" value="/typo3/index.php?route=%2Ffile%2Feditcontent&...">

^^note the difference in redirect field name

There are 2 possible solutions:
1) change the form generation code to make redirect field have name "redirect"
2) change save&close button js code from
'document.editform.redirect.value='...

to

'document.editform.elements.namedItem("data[editfile]0[redirect]").value='...


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #81763: Migrate file edit form to FormEngineClosedAndreas Kienast2017-07-01

Actions
Actions

Also available in: Atom PDF