workflows: only add "deleted" session message for "front" object (#84685) #926
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/84685-do-not-add-deleted-session-message-deep-down"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(not for objects down the external workflow calls)
b695542478
toc1f4278184
WIP: workflows: only add "deleted" session message for "front" object (#84685)to workflows: only add "deleted" session message for "front" object (#84685)@ -153,0 +153,4 @@
get_request()
and get_response().filter.get('in_backoffice')
and len(get_publisher().workflow_execution_stack) < 2
):
Pour qu'on comprenne mieux j'aurai mis la condition « if len(get_publisher().workflow_execution_stack) < 2 » en dessous, au niveau du block qui pose un get_session().message. Parce que là en cas de workflow externe on se retrouve dans else qui fait le url = get_publisher().get_frontoffice_url() et c'est bizarre (sans impact, mais bizarre).
Je sais je pinaille.
Ok j'ai réécrit différemment cette partie.
c1f4278184
to015db13ceb
015db13ceb
to5b4345b416
C'est parfait ainsi (pour moi).