Fix error with empty workflow svg and error when saving empty workflow#6408
Fix error with empty workflow svg and error when saving empty workflow#6408BartChris wants to merge 4 commits intokitodo:mainfrom
Conversation
b136949 to
f8dd94e
Compare
d587ff6 to
a9162be
Compare
a9162be to
cbdf11e
Compare
|
@BartChris Are you planning to continue working on this? I am working on refactoring all @SessionScoped form classes, which includes the WorkflowForm, see #6456. |
|
@thomaslow no, please go ahead, i left it open for quite long and do not want to to interfere with your work. I will close. |
|
@BartChris Alright. I'll try to include some of your improvements in my refactoring if there is time. I also came across this problematic "duplicate" action again (while changing @SessionScoped to @ViewScoped) and came up with another approach instead of this flash context thingy. I simply added a new view parameter "duplicate=true" in case an object should be duplicated. Do you think this is an appropriate solution or do you see any downsides to that? An example is here: |
|
Sounds good i would say on first take, especially if it simplifies the logic on form setup. I think this check for the flash context is a little bit cumbersome. |
|
I will maybe keep it as draft, so this does not get lost, but let you do your work uninterrupted. |
Fixes #6290
Adresses #6355 (comment)
Additional changes