Commit 5575028a authored by Julien Muchembled's avatar Julien Muchembled

Ignore properties without any reference

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43575 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48e29f80
...@@ -128,7 +128,9 @@ class StandardProperty(IdAsReferenceMixin('_property'), XMLObject): ...@@ -128,7 +128,9 @@ class StandardProperty(IdAsReferenceMixin('_property'), XMLObject):
""" """
property_default_value = self._getExpressionFromString(self.getPropertyDefault()) property_default_value = self._getExpressionFromString(self.getPropertyDefault())
return {'id': self.getReference(), reference = self.getReference()
if reference:
return {'id': reference,
'description': self.getDescription(), 'description': self.getDescription(),
'type': self.getElementaryType(), 'type': self.getElementaryType(),
'storage_id': self.getStorageId(), 'storage_id': self.getStorageId(),
......
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