Commit 6ab3e4d4 authored by Romain Courteaud's avatar Romain Courteaud

Test if a object is None with the keyword is (and not ==).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6053 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c5cffb1
......@@ -999,7 +999,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
selection_name = 'Base_viewRelatedObjectList'
# reselt current selection
self.portal_selections.setSelectionFor( selection_name, None)
self.portal_selections.setSelectionFor(selection_name, None)
# XXX portal_status_message =
# "Please select one object to precise the value:
......@@ -1007,7 +1007,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
portal_status_message = "Please select one object."
if field.meta_type == "MultiRelationStringField":
if sub_index == None:
if sub_index is None:
# user click on the wheel, not on the validation button
# we need to facilitate user search
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment