diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index 59dbb1932b4ed3f4be1824aa626f063f03db1357..3eff8aade866695e6a78d64f43f284fd0300aee5 100644 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -149,7 +149,10 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ): storage = 'selection_data' elif storage == 'Memcached Tool': memcached_plugin_list = self.portal_memcached.contentValues(portal_type='Memcached Plugin', sort_on='int_index') - storage = memcached_plugin_list[0].getRelativeUrl() + if len(memcached_plugin_list): + storage = memcached_plugin_list[0].getRelativeUrl() + else: + storage = 'selection_data' return storage def isMemcachedUsed(self):