diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldDescription.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldDescription.xml index 96e4f7e579f26894ee1864c2407c3cd31c68d86c..cfcd175860c2ed1d0c8df997ac29a08f560f04fb 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldDescription.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldDescription.xml @@ -71,11 +71,10 @@ if desc in (\'\', None):\n if field.getId().startswith(\'my_\'):\n properties = context.propertyMap()\n - id = \'%s_\' % field.getId()\n + id = \'%s_\' % field.getId() # To avoid matching a subword\n for property in properties:\n - if \'_%s_\' % property[\'id\'] in id:\n - desc = property[\'description\']\n - break\n + if \'_%s_\' % property[\'id\'] in id: # To avoid matching "my_"\n + return property.get(\'description\', \'\')\n \n return desc\n </string> </value>