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
811d251d
Commit
811d251d
authored
Sep 15, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: Base_getWorkflowStateItemList add compatibility of both workflow.
parent
96c2aefe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowStateItemList.xml
.../portal_skins/erp5_core/Base_getWorkflowStateItemList.xml
+5
-5
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowStateItemList.xml
View file @
811d251d
...
...
@@ -63,12 +63,12 @@ state_dict = {}\n
item_list = []\n
for workflow_id in workflow_id_list:\n
workflow = getToolByName(context, \'portal_workflow\')[workflow_id]\n
for state
in workflow.states.objectValue
s():\n
if state.title and state
.
id!=\'deleted\':\n
if not state_dict.has_key(state
.
id):\n
for state
_id, state in workflow.getStateValueList().item
s():\n
if state.title and state
_
id!=\'deleted\':\n
if not state_dict.has_key(state
_
id):\n
# we hide states without titles\n
item_list.append((state.title, state
.
id))\n
state_dict[state
.
id] = None\n
item_list.append((state.title, state
_
id))\n
state_dict[state
_
id] = None\n
return item_list\n
</string>
</value>
</item>
...
...
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