Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
346a7f88
Commit
346a7f88
authored
Jun 12, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: in action button script, get action refference instead of id.
parent
e442dde0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFormViewDialogActionButtonTitle.xml
...ins/erp5_core/Base_getFormViewDialogActionButtonTitle.xml
+5
-2
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFormViewDialogActionButtonTitle.xml
View file @
346a7f88
...
...
@@ -58,9 +58,12 @@ if button_title is not None:\n
\n
wf_actions = context.portal_actions.portal_actions.listFilteredActionsFor(context)[\'workflow\']\n
workflow_action = request.get(\'workflow_action\', None) or request.get(\'field_my_workflow_action\', None)\n
\n
if workflow_action:\n
for action in wf_actions: \n
if action[\'id\'] == workflow_action:\n
for action in wf_actions:\n
# extract action reference from the url predefined\n
action_reference = action[\'url\'][action[\'url\'].find(\'workflow_action\')+16:]\n
if action_reference == workflow_action:\n
return action[\'name\']\n
\n
if workflow_action:\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment