Commit 30f0ad49 authored by Fabien Morin's avatar Fabien Morin

Set empty string as default value for type_icon because CMF core don't handle

None value and raise. This makes you having a site_error if you call getIcon on
an object with no icon defined on his portal_types.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37704 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe6a6e35
...@@ -36,6 +36,7 @@ class BaseType: ...@@ -36,6 +36,7 @@ class BaseType:
'storage_id': 'content_icon', # CMF Compatibility 'storage_id': 'content_icon', # CMF Compatibility
'type': 'string', 'type': 'string',
'mode': 'w', 'mode': 'w',
'default': '',
}, },
{ 'id': 'type_factory_method_id', { 'id': 'type_factory_method_id',
'storage_id': 'factory', # CMF Compatibility 'storage_id': 'factory', # CMF Compatibility
......
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