Commit 926af606 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Do not evaluate expression when checking properties of type 'tales'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10159 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0a447697
...@@ -68,7 +68,10 @@ class PropertyTypeValidity(Constraint): ...@@ -68,7 +68,10 @@ class PropertyTypeValidity(Constraint):
else: else:
property_type = prop['type'] property_type = prop['type']
wrong_type = 0 wrong_type = 0
value = obj.getProperty(property_id) if property_type == 'tales':
value = obj.getProperty(property_id, evaluate=0)
else:
value = obj.getProperty(property_id)
if value is not None: if value is not None:
# Check known type # Check known type
try: try:
......
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