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
1
Issues
1
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
Roque
erp5
Commits
a72778db
Commit
a72778db
authored
Jul 31, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workflow.py: avoid converting an empty value to tuple.
parent
09626b42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+2
-1
No files found.
product/ERP5Workflow/Document/Workflow.py
View file @
a72778db
...
@@ -950,7 +950,8 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -950,7 +950,8 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
state_ref_list
.
append
(
state_ref
)
state_ref_list
.
append
(
state_ref
)
property_value
=
tuple
(
state_ref_list
)
property_value
=
tuple
(
state_ref_list
)
if
property_id
==
'matched_portal_type_list'
:
if
property_id
==
'matched_portal_type_list'
:
property_value
=
tuple
(
property_value
)
if
property_value
is
not
None
:
property_value
=
tuple
(
property_value
)
property_type
=
qdef
.
getPropertyType
(
property_id
)
property_type
=
qdef
.
getPropertyType
(
property_id
)
sub_object
=
SubElement
(
worklist
,
property_id
,
attrib
=
dict
(
type
=
property_type
))
sub_object
=
SubElement
(
worklist
,
property_id
,
attrib
=
dict
(
type
=
property_type
))
if
property_value
is
None
or
property_value
==
()
or
property_value
==
[]:
if
property_value
is
None
or
property_value
==
()
or
property_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