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

previous attempt on fixing the regression in change state dialog in 35652 was...

previous attempt on fixing the regression in change state dialog in 35652 was completly wrong. this is the proper fix

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35654 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34b94228
...@@ -455,8 +455,12 @@ destination_section_where_expression</string> </value> ...@@ -455,8 +455,12 @@ destination_section_where_expression</string> </value>
<dtml-elif count>\n <dtml-elif count>\n
COUNT(DISTINCT catalog.uid) AS count\n COUNT(DISTINCT catalog.uid) AS count\n
<dtml-else>\n <dtml-else>\n
<dtml-in "portal_catalog.getSQLCatalog().getCatalogSearchResultKeys()"> <dtml-var sequence-item><dtml-if sequence-end> <dtml-else>, </dtml-if> </dtml-in>\n <dtml-if "query[\'select_expression\']">\n
<dtml-if "query[\'select_expression\']">,<dtml-var "query[\'select_expression\']">\n <dtml-var "query[\'select_expression\']">\n
<dtml-in "search_result_keys">,<dtml-var sequence-item></dtml-in>\n
, delivery.start_date as operation_date\n
, \'source\' as section_mark\n
, catalog.reference as specific_reference\n
<dtml-else>\n <dtml-else>\n
DISTINCT\n DISTINCT\n
<dtml-in "search_result_keys">\n <dtml-in "search_result_keys">\n
...@@ -634,8 +638,9 @@ destination_section_where_expression</string> </value> ...@@ -634,8 +638,9 @@ destination_section_where_expression</string> </value>
SELECT COUNT(DISTINCT uid) AS count FROM (\n SELECT COUNT(DISTINCT uid) AS count FROM (\n
<dtml-else>\n <dtml-else>\n
SELECT\n SELECT\n
<dtml-in "portal_catalog.getSQLCatalog().getCatalogSearchResultKeys()"> <dtml-var sequence-item><dtml-if sequence-end> <dtml-else>, </dtml-if> </dtml-in>\n <dtml-if "query[\'select_expression\']">\n
<dtml-if "query[\'select_expression\']">,<dtml-var "query[\'select_expression\']">\n <dtml-var "query[\'select_expression\']">\n
<dtml-in "search_result_keys">,<dtml-var sequence-item></dtml-in>\n
<dtml-else>\n <dtml-else>\n
catalog.*,\n catalog.*,\n
( SELECT title FROM catalog as mirror_catalog WHERE mirror_catalog.uid=catalog.delivery_mirror_section_uid ) AS delivery_mirror_section_title,\n ( SELECT title FROM catalog as mirror_catalog WHERE mirror_catalog.uid=catalog.delivery_mirror_section_uid ) AS delivery_mirror_section_title,\n
...@@ -1124,8 +1129,12 @@ UNION\n ...@@ -1124,8 +1129,12 @@ UNION\n
<dtml-elif count>\n <dtml-elif count>\n
COUNT(DISTINCT catalog.uid) AS count\n COUNT(DISTINCT catalog.uid) AS count\n
<dtml-else>\n <dtml-else>\n
<dtml-in "portal_catalog.getSQLCatalog().getCatalogSearchResultKeys()"> <dtml-var sequence-item><dtml-if sequence-end> <dtml-else>, </dtml-if> </dtml-in>\n <dtml-if "query[\'select_expression\']">\n
<dtml-if "query[\'select_expression\']">,<dtml-var "query[\'select_expression\']">\n <dtml-var "query[\'select_expression\']">\n
<dtml-in "search_result_keys">,<dtml-var sequence-item></dtml-in>\n
, delivery.start_date as operation_date\n
, \'source\' as section_mark\n
, catalog.reference as specific_reference\n
<dtml-else>\n <dtml-else>\n
DISTINCT\n DISTINCT\n
<dtml-in "search_result_keys">\n <dtml-in "search_result_keys">\n
...@@ -1303,8 +1312,9 @@ UNION\n ...@@ -1303,8 +1312,9 @@ UNION\n
SELECT COUNT(DISTINCT uid) AS count FROM (\n SELECT COUNT(DISTINCT uid) AS count FROM (\n
<dtml-else>\n <dtml-else>\n
SELECT\n SELECT\n
<dtml-in "portal_catalog.getSQLCatalog().getCatalogSearchResultKeys()"> <dtml-var sequence-item><dtml-if sequence-end> <dtml-else>, </dtml-if> </dtml-in>\n <dtml-if "query[\'select_expression\']">\n
<dtml-if "query[\'select_expression\']">,<dtml-var "query[\'select_expression\']">\n <dtml-var "query[\'select_expression\']">\n
<dtml-in "search_result_keys">,<dtml-var sequence-item></dtml-in>\n
<dtml-else>\n <dtml-else>\n
catalog.*,\n catalog.*,\n
( SELECT title FROM catalog as mirror_catalog WHERE mirror_catalog.uid=catalog.delivery_mirror_section_uid ) AS delivery_mirror_section_title,\n ( SELECT title FROM catalog as mirror_catalog WHERE mirror_catalog.uid=catalog.delivery_mirror_section_uid ) AS delivery_mirror_section_title,\n
......
1227 1229
\ 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