Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aaron Chen
erp5
Commits
4afac5ce
Commit
4afac5ce
authored
Nov 24, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup SQLCatalog_makeSearchTextQuery.
parent
a396a443
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeSearchTextQuery.xml
...alog/erp5_mysql_innodb/SQLCatalog_makeSearchTextQuery.xml
+2
-3
No files found.
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeSearchTextQuery.xml
View file @
4afac5ce
...
@@ -71,10 +71,9 @@ else:\n
...
@@ -71,10 +71,9 @@ else:\n
column = \'title\'\n
column = \'title\'\n
node = context.Base_getAdvancedSearchSyntaxTreeNode(value, column=column)\n
node = context.Base_getAdvancedSearchSyntaxTreeNode(value, column=column)\n
if node is None:\n
if node is None:\n
from Products.ZSQLCatalog.SQLCatalog import Query\n
return context.buildSingleQuery(column, value)\n
return Query(**{column:value})\n
else:\n
else:\n
return context.
getPortalObject().portal_catalog.getSQLCatalog().
buildQueryFromAbstractSyntaxTreeNode(node, column)\n
return context.buildQueryFromAbstractSyntaxTreeNode(node, column)\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment