Commit 0c0fa0d2 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Catalog: fix ZMI view of catalog switching to ERP5 view

parent 45b72215
...@@ -79,9 +79,10 @@ class SQLMethod(XMLObject, ZSQL, ExpressionMixin): ...@@ -79,9 +79,10 @@ class SQLMethod(XMLObject, ZSQL, ExpressionMixin):
manage = manage_main = ZSQL.manage manage = manage_main = ZSQL.manage
manage_main._setName('manage_main') manage_main._setName('manage_main')
# View content list, Force /view, Standard option in SQLMethod # View content list, replace /view, Standard option in SQLMethod
manage_options = ({'icon':'', 'label':'View','action':'view'},) \ manage_options = ( ZSQL.manage_options[0], ) + \
+ ZSQL.manage_options ({'icon':'', 'label':'View','action':'view'},) + \
ZSQL.manage_options[2:]
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
...@@ -151,8 +151,8 @@ class ERP5Catalog(Folder, Catalog): ...@@ -151,8 +151,8 @@ class ERP5Catalog(Folder, Catalog):
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
# Explicitly add tabs for manage_options # Explicitly add tabs for manage_options
manage_options = ({'label': 'View', 'action': 'view'}, manage_options = ({'label': 'Contents', 'action': 'manage_main'},
{'label': 'Contents', 'action': 'manage_main'}, {'label': 'View', 'action': 'view'},
{'label': 'Security', 'action': 'manage_access'}, {'label': 'Security', 'action': 'manage_access'},
{'label': 'Undo', 'action': 'manage_UndoForm'}, {'label': 'Undo', 'action': 'manage_UndoForm'},
{'label': 'Ownership', 'action': 'manage_owner'}, {'label': 'Ownership', 'action': 'manage_owner'},
......
...@@ -57,8 +57,8 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool): ...@@ -57,8 +57,8 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool):
security = ClassSecurityInfo() security = ClassSecurityInfo()
# Explicitly add tabs for manage_options # Explicitly add tabs for manage_options
manage_options = ({'label': 'View', 'action': 'view'}, manage_options = ({'label': 'Contents', 'action': 'manage_main'},
{'label': 'Contents', 'action': 'manage_main'}, {'label': 'View', 'action': 'view'},
{'label': 'Security', 'action': 'manage_access'}, {'label': 'Security', 'action': 'manage_access'},
{'label': 'Undo', 'action': 'manage_UndoForm'}, {'label': 'Undo', 'action': 'manage_UndoForm'},
{'label': 'Ownership', 'action': 'manage_owner'}, {'label': 'Ownership', 'action': 'manage_owner'},
......
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