Commit d0141cb0 authored by Jérome Perrin's avatar Jérome Perrin

Search with relative_urls like project_module/1/% instead of project_module/1%...

Search with relative_urls like project_module/1/% instead of project_module/1%  (which was also matching project_module/10 by mistake)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34332 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f4983d26
...@@ -65,7 +65,7 @@ worker_column_list = []\n ...@@ -65,7 +65,7 @@ worker_column_list = []\n
\n \n
# find all Tasks\n # find all Tasks\n
source_project_uid_list = [x.uid for x in context.portal_catalog(\n source_project_uid_list = [x.uid for x in context.portal_catalog(\n
relative_url=\'%s%%\' % context.getRelativeUrl())]\n relative_url=\'%s/%%\' % context.getRelativeUrl())]\n
\n \n
from_date = request.get(\'from_date\', None)\n from_date = request.get(\'from_date\', None)\n
if from_date is None:\n if from_date is None:\n
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>project_uid_list = [x.uid for x in context.portal_catalog(\n <value> <string>project_uid_list = [x.uid for x in context.portal_catalog(\n
relative_url=\'%s%%\' % context.getRelativeUrl())]\n relative_url=\'%s/%%\' % context.getRelativeUrl())]\n
\n \n
return context.portal_catalog(selection=selection, \n return context.portal_catalog(selection=selection, \n
selection_report=selection_report,\n selection_report=selection_report,\n
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
source_project_uid_list = [x.uid for x in context.portal_catalog(\n source_project_uid_list = [x.uid for x in context.portal_catalog(\n
relative_url=\'%s%%\' % context.getRelativeUrl())]\n relative_url=\'%s/%%\' % context.getRelativeUrl())]\n
\n \n
from Products.ZSQLCatalog.SQLCatalog import Query\n from Products.ZSQLCatalog.SQLCatalog import Query\n
\n \n
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
source_project_uid_list = [x.uid for x in context.portal_catalog(\n source_project_uid_list = [x.uid for x in context.portal_catalog(\n
relative_url=\'%s%%\' % context.getRelativeUrl())]\n relative_url=\'%s/%%\' % context.getRelativeUrl())]\n
\n \n
from Products.ZSQLCatalog.SQLCatalog import Query\n from Products.ZSQLCatalog.SQLCatalog import Query\n
\n \n
......
755 756
\ No newline at end of file \ No newline at end of file
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