diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_viewQuickSearchResultList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_viewQuickSearchResultList.xml index d5d6735d71abe26ea737ef8908804ae9ed493c4c..c128a8f852a5dc61a2116c454f98afcba1098c53 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_viewQuickSearchResultList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_viewQuickSearchResultList.xml @@ -75,6 +75,12 @@ if web_section is not None and \\\n else:\n search_context = context.getPortalObject()\n \n +if field_your_search_text in (\'\', None):\n + # no search criteria specified, refuse to conduct any search and \n + # show a message to user\n + kw[\'portal_status_message\'] = \'Please specify search criteria.\'\n + return search_context.Base_redirect(\'view\', keep_items=kw)\n + \n return search_context.Base_redirect(field_your_search_form_id, keep_items=kw)\n </string> </value> </item> @@ -126,6 +132,7 @@ return search_context.Base_redirect(field_your_search_form_id, keep_items=kw)\n <string>bool</string> <string>False</string> <string>search_context</string> + <string>_write_</string> </tuple> </value> </item> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 222272adff4b6580ae5103fb03ceae1a946958c1..b5526d659a5e71ed7048f1e50a973fb65f4d1fa9 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1488 \ No newline at end of file +1490 \ No newline at end of file