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,6 +68,9 @@ class PropertyTypeValidity(Constraint):
else:
property_type = prop['type']
wrong_type = 0
if property_type == 'tales':
value = obj.getProperty(property_id, evaluate=0)
else:
value = obj.getProperty(property_id)
if value is not None:
# Check known type
......
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