#98333Inconsistent behavior while saving content elements with *required* fields
Description
Summary*
If you edit an element with *required fields and click the normal save button (in the top headerbar), you can get an alert which says that some are not correctly filled. But with the save and view button, you can bypass the whole check and leave the element broken in place. The Fluid code has not always a check if such a field is not given – we would rely on the backend to prevent this.
I tested it with the “Categorized content” element, the Selected categories field is required. But I think every element with required fields has problems.
*Expected behavior*
The “Save and view” button gives the same alert message as the normal one – preventing to save the element.
*Actual behavior*
The “Save and view” button bypasses the expected behavior and saves/shows the element in a new tab.
- v11.5.15
- v10.4.31
- v9.5.31
- (maybe also v12 or older versions than v9 – I didn’t test them)
Reviews 3
Related issues 2
Files 2
History 919
-
Andreas Kienast commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2023-08-03T14:54:40+00:00" > 08/03/23, 14:54 </span> -
Julian Mair commented and changed attached Screenshot from 2023-08-04 09-16-13--copy.png attached Screenshot from 2023-08-04 09-16-33--copy.png <span data-processor="relativetime" data-value="2023-08-04T07:27:11+00:00" > 08/04/23, 07:27 </span>
Hey Andreas, no there is no 3rd party extension – this comes from the core. I append 2 screenshots to explain it a bit better. If you have more questions, feel free to ask. Thanks.
-
Andreas Kienast commented <span data-processor="relativetime" data-value="2023-08-04T07:56:55+00:00" > 08/04/23, 07:56 </span>
Alright, thank you for your clarification. I was under the assumption you meant the old “Save & View” button.
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-06-24T20:45:17+00:00" > 06/24/24, 20:45 </span>
I tried to perform a test on TYPO3 13 but I am unsure if my test is correct:
1) I added on a page a “Form engine – required“ record
2) without saving it I clicked on “view” buttonA modal “You currently have unsaved changes. You can either discard these changes or save and view them.” opens
I clicked on the button “Save changes and view”
Result
- The browser opens a new tab, but it is stuck on a about:blank page
- TYPO3 backend shows an alert modal: “The fields marked with an exclamation mark are not yet correctly filled in. Please complete them properly.”Is this test sufficient or a different test is necessary?
-
Julian Mair commented <span data-processor="relativetime" data-value="2024-06-25T07:03:30+00:00" > 06/25/24, 07:03 </span>
Hey Riccardo, this test is perfect. I followed the same steps in TYPO3 v12 (and older), and it behaved as described in the issue. Unfortunately, I don’t have a v13 available to test, but I’m glad this is now fixed. Do you know the corresponding issue/review link for this fix by any chance?
Thanks!
-
Gerrit Code Review pushed patch set 4 for main to change 83837 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2024-11-04T07:53:38+00:00" > 11/04/24, 07:53 </span> -
Gerrit Code Review pushed patch set 4 for 12.4 to change 83838 <span data-processor="relativetime" data-value="2024-11-04T07:55:31+00:00" > 11/04/24, 07:55 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 83837 <span data-processor="relativetime" data-value="2024-11-20T15:56:49+00:00" > 11/20/24, 15:56 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 83837 <span data-processor="relativetime" data-value="2024-11-21T09:09:25+00:00" > 11/21/24, 09:09 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 83837 <span data-processor="relativetime" data-value="2024-11-21T10:38:21+00:00" > 11/21/24, 10:38 </span>
-
Rémy DANIEL changed Related to #103637 <span data-processor="relativetime" data-value="2025-02-14T21:02:00+00:00" > 02/14/25, 21:02 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 83837 <span data-processor="relativetime" data-value="2025-03-25T09:00:23+00:00" > 03/25/25, 09:00 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 83837 <span data-processor="relativetime" data-value="2025-04-01T11:24:36+00:00" > 04/01/25, 11:24 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 83837 <span data-processor="relativetime" data-value="2025-04-04T09:25:25+00:00" > 04/04/25, 09:25 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 88962 <span data-processor="relativetime" data-value="2025-04-07T13:09:36+00:00" > 04/07/25, 13:09 </span>
-
Gerrit Code Review pushed patch set 5 for 12.4 to change 83838 <span data-processor="relativetime" data-value="2025-04-07T13:12:42+00:00" > 04/07/25, 13:12 </span>
-
Andreas Fernandez commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-04-07T13:25:08+00:00" > 04/07/25, 13:25 </span>Applied in changeset commit:2aaf2a33d14c1c2bc5185e359bfd6f222d8230a1.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:33:56+00:00" > 12/02/25, 14:33 </span> -
Benni Mack changed Related to #91932 <span data-processor="relativetime" data-value="2026-11-06T10:05:55+00:00" > 11/06/26, 10:05 </span>
Hey, thank you for your report. TYPO3 doesn’t have a “Save & View” button anymore since v10, IIRC. Do you by chance have a 3rd party extension installed that re-implements this feature?