Commit 7a888795 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

change the tales expression in the property default when the filed is a CheckBox

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22820 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4643b62d
......@@ -318,7 +318,7 @@ class ManageModule:
access_field = getattr(form_view_id_object, field_id)
if field_type == 'CheckBoxField':
test_name = field_id[3:]
tales = {field_id : {'default' : 'here'+ '/'+ test_name}}
tales = {field_id : {'default' : 'python: here.getProperty('+ test_name + ', None)'}}
forms = [object_names['view_id']]
form = form_view_id_object.restrictedTraverse(forms[0])
......
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