Commit 7877f53a authored by Xavier Perseguers's avatar Xavier Perseguers Committed by Anja Leichsenring
Browse files

[BUGFIX] Reintroduce the check on options.saveDocNew

Due to a refactoring and "unrolling" of buttons in TYPO3 v9, the TSconfig
options.saveDocNew has been forgotten when adding a button to create a
new record right while editing another one.

Even if the new button nowadays is physically not a "Save and create new"
action in the label, the behaviour is strictly the same as any unchanged
edit will trigger a modal asking whether the changes should be persisted.

Releases: master, 10.4, 9.5
Resolves: #87321
Resolves: #92788
Change-Id: Ic79f7ff06afef0cf9423780eef2d5324e5613664
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66559


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Eric Chavaillaz's avatarEric Chavaillaz <eric@hemmer.ch>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Eric Chavaillaz's avatarEric Chavaillaz <eric@hemmer.ch>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarJosef Glatz <josefglatz@gmail.com>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 2c21bcb1
......@@ -1539,6 +1539,7 @@ class EditDocumentController
)
)
)
&& $this->getTsConfigOption($this->firstEl['table'], 'saveDocNew')
) {
$classNames = 't3js-editform-new';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment