Added Base_viewWorkflowActionDialog which will someday replace...
Added Base_viewWorkflowActionDialog which will someday replace BaseWorkflow_viewWorkflowActionDialog ( bad naming ). Please update your workflow transisitons. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15565 20353a03-c40f-0410-a6d1-a30d3c3de9de
-
Developer
@jerome seems
someday
is still waiting to come :). Noticed this, since it cause some bug in new UI mass workflow transition, coming from <a='https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyDocumentListStatus.py#L25'>here.So, question, if one does a blind replace of
BaseWorkflow_viewWorkflowActionDialog?workflow_action
withBase_viewWorkflowActionDialog?workflow_action
in filesystem, do you think it would be good enough? Then we require projects to do and (maybe?) we removeBaseWorkflow_viewWorkflowActionDialog
altogether? -
Owner
I guess we can replace
BaseWorkflow_viewWorkflowActionDialogaltogether
byBase_viewWorkflowActionDialogaltogether
everywhere, but if the new UI cannot render other workflow dialog forms thanBase_viewWorkflowActionDialog
, then it's a problem.One important feature is to be able to use a custom workflow dialog on a selection of documents, for example "post a reply and close the ticket" on ticket workflow where there's a editor field to post a reply.
This is supposed to be tested in testFolderWorkflowActionCustomDialog.
I have not followed the port of mass workflow transition to new UI, I'm not sure what's the current state. Maybe @romain can confirm if this is supposed to work already ?
-
Owner
( I think I should cc @georgios.dagkakis explicitely for my reply because this commit is not in a MR )
-
Owner
@jerome @georgios.dagkakis Mass workflow transition in new UI has a completely different implementation and behaviour. This was required because selections are not used in the new UI. The dialog support custom dialog normally. The "only" hardcoded part is to handle the actbox_url query parameter which is for now manually set in the request.
This code expects the hidden your_workflow_action, but BaseWorkflow_viewWorkflowActionDialog uses my_workflow_action. I'll workaround this for now by adding another hardcoded value...