Commit feabcd77 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Better to update property for all list types in properties

parent 400de71c
......@@ -1769,7 +1769,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
# problem. Other way would be to leave the proeprties as it is for ERP5Catalog
# objects and change the function calls in ERP5Catalog accordignly instead.
for p in sql_catalog.propertyMap():
if p['type'] == 'selection':
if p['type'] in ['selection', 'multiple selection', 'lines']:
accessor_name = 'get' + UpperCase(p['id'])
value = getattr(sql_catalog, p['id'])
setattr(erp5_catalog, p['id'], value)
......
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