details:   https://code.openbravo.com/erp/devel/pi/rev/c9b0805e2280
changeset: 13301:c9b0805e2280
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Wed Jul 27 12:56:53 2011 +0200
summary:   Fixd 18095: Fix wad-validation for aux-inputs in modules having >1 
dbprefix

diffstat:

 src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r e6f2a4b5957e -r c9b0805e2280 
src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql
--- a/src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql   Wed Jul 
27 12:15:48 2011 +0200
+++ b/src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql   Wed Jul 
27 12:56:53 2011 +0200
@@ -270,10 +270,10 @@
         and m.ad_module_id = i.ad_module_id
         and t.ad_tab_id = i.ad_tab_id
         and t.ad_module_id <> i.ad_module_id
-        and exists (select 1 
+        and not exists (select 1 
                      from AD_Module_DBPrefix p
                     where p.AD_Module_ID = i.AD_Module_ID
-                      and instr(upper(i.NAME), upper(p.name)||'_') != 1)
+                      and instr(upper(i.NAME), upper(p.name)||'_') = 1)
         and (m.javapackage in ('1') or to_char('Y')=to_char(?))
       ]]>
     </Sql>

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to