[erp5_core] fixup document deletion dialog
Some document subobjects have a workflow, and so, can be only be deleted from some state If the listbox does not display them, do not add the state filter parameter
Showing
-
Owner
@romain can you please take a look at coding style test result while you remember this code ?
What happened is that I enabled erp5_core in coding style test, I did this in !996 (merged) which started from a bit old revision, before this change. Now that !996 (merged) is merged, this introduced a failure:
+ [portal_skins/erp5_core/Folder_getDeletableDocumentListParameterList:6:7:Undefined variable 'sametype' (undefined-variable), + portal_skins/erp5_core/Module_listWorkflowTransitionItemList:21:81:Undefined variable 'portal_type_list' (undefined-variable)]
( I thought that our pylint does not understand
sametype
, but the spelling seems to besame_type
)merci !
-
mentioned in commit romain/erp5@556a6693
-
mentioned in commit romain/erp5@8cab9253