Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
7d380459
Commit
7d380459
authored
Jun 20, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get the workflow state var from workflow configuration
instead of guessing its name
parent
0ee6eae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
...ortal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
+2
-1
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
View file @
7d380459
...
@@ -90,6 +90,7 @@ for history_name in [\'history\', \'building_history\', \'installation_history\'
...
@@ -90,6 +90,7 @@ for history_name in [\'history\', \'building_history\', \'installation_history\'
if workflow_item_list != []:\n
if workflow_item_list != []:\n
break\n
break\n
\n
\n
wf_state_var = portal_workflow[workflow_id].variables.getStateVar()\n
wf_states = portal_workflow[workflow_id].states\n
wf_states = portal_workflow[workflow_id].states\n
wf_transitions = portal_workflow[workflow_id].transitions\n
wf_transitions = portal_workflow[workflow_id].transitions\n
\n
\n
...
@@ -107,7 +108,7 @@ for workflow_item in workflow_item_list:\n
...
@@ -107,7 +108,7 @@ for workflow_item in workflow_item_list:\n
if key.startswith(compatibility_name):\n
if key.startswith(compatibility_name):\n
# Display the workflow state in the state columns\n
# Display the workflow state in the state columns\n
key = key[len(compatibility_name):]\n
key = key[len(compatibility_name):]\n
if key
.endswith(\'state\')
: \n
if key
== wf_state_var
: \n
# Store locally the id of state, usefull for merging action and transition\n
# Store locally the id of state, usefull for merging action and transition\n
state_id = wf_states.get(value, marker) and wf_states[value].id\n
state_id = wf_states.get(value, marker) and wf_states[value].id\n
o.setProperty(\'state_id\', state_id)\n
o.setProperty(\'state_id\', state_id)\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