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
Georgios Dagkakis
erp5
Commits
691e9f3a
Commit
691e9f3a
authored
Jan 06, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_base: Do not rely on the absence of surprising user ids.
parent
73b4299a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.py
...erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.py
+5
-2
No files found.
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.py
View file @
691e9f3a
from
Products.ZSQLCatalog.SQLCatalog
import
SimpleQuery
return
SimpleQuery
(
owner
=
[
owner
=
[
x
.
user_id
for
x
in
context
.
getPortalObject
().
portal_catalog
(
select_list
=
[
'user_id'
],
title
=
value
,
)
]
or
value
or
-
1
)
]
or
value
if
owner
:
return
SimpleQuery
(
owner
=
owner
)
return
SimpleQuery
(
uid
=-
1
)
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