Commit 4e053889 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Only add a value to the list of processed (predicate, value) when there is

actually a value defined on the predicate.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9395 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08e53c6d
...@@ -261,10 +261,10 @@ class DomainTool(BaseTool): ...@@ -261,10 +261,10 @@ class DomainTool(BaseTool):
if mapped_value_property in prop_list: if mapped_value_property in prop_list:
# we already have one value for this (categories, property) # we already have one value for this (categories, property)
continue continue
prop_list.append(mapped_value_property)
value = predicate.getProperty(mapped_value_property) value = predicate.getProperty(mapped_value_property)
if value is not None: if value is not None:
prop_list.append(mapped_value_property)
mv_prop_list = \ mv_prop_list = \
mapped_value_property_dict.setdefault( mapped_value_property_dict.setdefault(
mapped_value_property, []) mapped_value_property, [])
......
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