Commit 99a8e383 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove implicit join with catalog. You need to update...

Remove implicit join with catalog. You need to update Resource_zGetInventoryList and Resource_zGetMovementHistoryList from erp5_core.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c71d134d
...@@ -2071,7 +2071,7 @@ class Catalog( Folder, ...@@ -2071,7 +2071,7 @@ class Catalog( Folder,
new_key = '%s.%s' % (query_table, key) new_key = '%s.%s' % (query_table, key)
elif key == 'uid': elif key == 'uid':
# uid is always ambiguous so we can only change it here # uid is always ambiguous so we can only change it here
new_key = 'catalog.uid' new_key = '%s.uid' % (query_table, )
else: else:
new_key = key new_key = key
if new_key is not None: if new_key is not None:
...@@ -2087,7 +2087,7 @@ class Catalog( Folder, ...@@ -2087,7 +2087,7 @@ class Catalog( Folder,
select_expression = '' select_expression = ''
group_by_expression = '' group_by_expression = ''
from_table_dict = {'catalog' : 'catalog'} # Always include catalog table from_table_dict = {}
if len(kw): if len(kw):
if kw.has_key('select_expression'): if kw.has_key('select_expression'):
select_expression_list.append(kw['select_expression']) select_expression_list.append(kw['select_expression'])
......
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