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

Tested-by: default avatarTYPO3com <>
Tested-by: Eric Chavaillaz's avatarEric Chavaillaz <>
Tested-by: Markus Klein's avatarMarkus Klein <>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <>
Reviewed-by: Eric Chavaillaz's avatarEric Chavaillaz <>
Reviewed-by: Markus Klein's avatarMarkus Klein <>
Reviewed-by: default avatarJosef Glatz <>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <>
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