93086[BUGFIX] Fix form editor crash when editing forms in multiple browser tabs
Commit message
Review
-
Code review CR +2 Done
- Georg Ringer +2
- Garvin Hicking +1
-
Verified V +2 Done
- Georg Ringer +2
- Garvin Hicking +1
- core-ci +1 CI
Issues 1
Files 6
- typo3/sysext/form/Classes/Controller/FormEditorController.php+4 −4
- typo3/sysext/form/Classes/Domain/Configuration/FormDefinitionConversionService.php+32 −6
- typo3/sysext/form/Classes/Mvc/Property/TypeConverter/FormDefinitionArrayConverter.php+7 −9
- typo3/sysext/form/Tests/Functional/Controller/FormEditorControllerTest.php+1 −1
- typo3/sysext/form/Tests/Functional/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php+7 −6
- typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php+2 −1
Review log 2024
-
Josua Vogel uploaded patch set 1 03/05/26, 15:34
-
core-ci voted on patch set 1 V -1 03/05/26, 15:45 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97419
-
Josua Vogel uploaded patch set 2
V -103/05/26, 16:41 -
core-ci voted on patch set 2 V +1 03/05/26, 16:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97421
-
Georg Ringer commented on patch set 2 V -1 03/06/26, 09:50
still doesnt work for me: - opening form - duplicate tab - save in 1st, works - save in 2nd, works - save in 1st => crash with same error -
Georg Ringer commented on patch set 2 CR +1 V +1 03/06/26, 09:59
works now for different forms, same form is still buggy but can also be a different issue -
Josua Vogel uploaded patch set 3
CR +1V +103/06/26, 10:49 -
Garvin Hicking commented on patch set 3 CR +1 V +1 03/06/26, 11:15
Reply
I would argue that in this case the error even helps, because then you don't save state over a stale representation of the same form. -
Garvin Hicking commented on patch set 3 CR 0 V 0 03/06/26, 11:18
(mistakenly voted on the earlier variant of this - I'm not really sure we should "allow" multiple tabs of the actual form) -
core-ci voted on patch set 3 V +1 03/06/26, 11:24 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97484
-
Josua Vogel commented on patch set 3 03/06/26, 11:29
Reply
Why not? 😊 -
Garvin Hicking commented on patch set 3 03/06/26, 12:48
Reply
Let's say in one tab I added 10 form fields and saved. And then I get back to my other form tab. I remember "hey I want to change a field name here". I enter the field name, save -> and then (I think so, I haven't verified) the whole form will remove the 10 form fields from my other tab work and everything will go away. Since we don't version YAML files (yet *g*) that would be a bad loss of data, which the current exception would have prevented, no? -
Josua Vogel commented on patch set 3 03/07/26, 10:49
Reply
Good point, but I wonder if we should address this “error.” Some responsibility should also lie with the editor. I don't think throwing an exception, as is currently the case, is a good idea. With the prospect of versioning coming soon, we could consider merging this fix (maybe only main). Otherwise, we'll fix it again in a few months :) -
Garvin Hicking commented on patch set 3 03/07/26, 12:49
Reply
But where is the use case to allow editing the same form in multiple tabs? I only see danger and data loss here and find it a good thing it crashes now. It could crash with a distinct message. Personally I wouldn't go ahead with this witbout having form versions first. -
Garvin Hicking commented on patch set 3 03/07/26, 12:50
Reply
(Fixing different forms is totally fine by me, if you want to go back to that version of this patch) -
Josua Vogel commented on patch set 3 03/07/26, 13:21
Reply
Yes, data loss is a good point. Ultimately, however, this can also happen with normal content elements. The only additional point is that there is versioning. Another use case is, for example, when you have many tabs open, you forgot that you opened the form one Hour ago already - modify many parts, save, crashes, Frustration. I can wait with the fix until versioning is supported. Wouldnt go back to the previous patch for now, because I would Like to have it consistent with all other Content, which can be edited in different tabs -
Garvin Hicking commented on patch set 3 03/07/26, 13:43
Reply
oK but that wouls leave 13.4 unfixed for editing multiple forms. I think that is far more important than being able to edit the same form in multiple tabs. We should fix that IMO. -
Josua Vogel uploaded patch set 4
V +103/08/26, 18:18 -
Josua Vogel commented on patch set 4 03/08/26, 18:19
Reply
Done -
core-ci voted on patch set 4 V +1 03/08/26, 18:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97572
-
Garvin Hicking voted on patch set 4 CR +1 V +1 03/09/26, 13:09
-
Georg Ringer voted on patch set 4 CR +1 V +1 03/10/26, 03:54
-
Georg Ringer voted on patch set 4 CR +2 V +2 03/10/26, 03:54
-
Georg Ringer merged patch set 5 03/10/26, 03:54