Commit da369b6a authored by Yusei Tahara's avatar Yusei Tahara

Return original value if there is no translation even in content translation mode.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31807 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbdde5bd
...@@ -67,6 +67,8 @@ class TranslatedPropertyGetter(BaseGetter): ...@@ -67,6 +67,8 @@ class TranslatedPropertyGetter(BaseGetter):
if len(args) > 0: if len(args) > 0:
default = args[0] default = args[0]
else: else:
default = instance.getProperty(self._property_id)
if kw.get('no_original_value'):
default = self._default default = self._default
if self._language is None: if self._language is None:
......
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