diff --git a/bt5/erp5_full_text_sphinxse_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml b/bt5/erp5_full_text_sphinxse_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml index 675502eeb3521082f86e3e643eb8f3bcfdb0ff11..6e0ebe21e269c56b1f7ddd9a39657078c83928e9 100644 --- a/bt5/erp5_full_text_sphinxse_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml +++ b/bt5/erp5_full_text_sphinxse_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml @@ -61,8 +61,9 @@ defaut_dict = {\'mode\': \'ext2\', # full text search mode\n }\n for key, item in defaut_dict.items():\n operator = \';%s\' %key\n - if operator not in value:\n + if operator not in value and value not in (\'\', None):\n value = \'%s%s=%s\' %(value, operator, item)\n +\n query = Query(**{\'sphinxse_query\': value})\n return query\n </string> </value> diff --git a/bt5/erp5_full_text_sphinxse_catalog/bt/revision b/bt5/erp5_full_text_sphinxse_catalog/bt/revision index b5045cc4046dbc1d7cafa4c603fd3cdf35dc5dde..8fdd954df9831dfd29ceec0d74829b02f3f5d8c3 100644 --- a/bt5/erp5_full_text_sphinxse_catalog/bt/revision +++ b/bt5/erp5_full_text_sphinxse_catalog/bt/revision @@ -1 +1 @@ -21 \ No newline at end of file +22 \ No newline at end of file