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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
2a74f587
Commit
2a74f587
authored
Jun 17, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BT: reset dynamic classes when workflow chains change
parent
8808bedb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+4
-0
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
2a74f587
...
...
@@ -2515,6 +2515,7 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
# First convert all workflow_ids into list.
for
key
,
value
in
chain_dict
.
iteritems
():
chain_dict
[
key
]
=
value
.
split
(
self
.
_chain_string_separator
)
orig_chain_dict
=
chain_dict
.
copy
()
# Set the default chain to the empty string is probably the
# best solution, by default it is 'default_workflow', which is
# not very usefull
...
...
@@ -2589,6 +2590,9 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
.
join
(
self
.
_objects
[
path
])
,
portal_type
))
chain_dict
[
chain_key
]
=
self
.
_objects
[
path
]
if
orig_chain_dict
==
chain_dict
:
return
self
.
_resetDynamicModules
()
# convert workflow list into string only at the end.
for
key
,
value
in
chain_dict
.
iteritems
():
chain_dict
[
key
]
=
self
.
_chain_string_separator
.
join
(
value
)
...
...
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