Commit 63037b07 authored by Cristian Berner's avatar Cristian Berner 💎 Committed by Asier Lostalé
Browse files

Fixes ISSUE-45931: Create Fields button in Window -> tabs not working (0 fields created)

This issue was due to a modification on the selection query to detect
which fields should be added, from the columns of the underlying table.
A new join was added with table user_tab_column, but it was incorrect,
as one part of it was always in upper case, while the other part was not.

To fix it, an UPPER() function has been added to the corresponding where
clauses that required it.

Fixes regression introduced by commit 809d27ef
parent 27a59980
......@@ -22,7 +22,7 @@
* parts created by ComPiere are Copyright (C) ComPiere, Inc.;
* All Rights Reserved.
* Contributor(s): Openbravo SLU
* Contributions are Copyright (C) 2001-2020 Openbravo, S.L.U.
* Contributions are Copyright (C) 2001-2021 Openbravo, S.L.U.
* Specifically, this derivative work is based upon the following Compiere
* file and version.
......@@ -131,7 +131,7 @@
WHERE c.AD_Column_ID=f.AD_Column_ID AND c.AD_Table_ID=v_AD_Table_ID AND f.AD_Tab_ID=v_Record_ID
AND c.AD_Table_ID=v_AD_Table_ID AND c.AD_Table_ID=t.AD_Table_ID -- added by Pablo Sarobe
AND utc.table_name = t.tablename AND utc.column_name = c.Columnname
AND utc.table_name = UPPER(t.tablename) AND utc.column_name = UPPER(c.Columnname)
AND utc.data_type <> 'TSVECTOR'
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