details:   https://code.openbravo.com/erp/devel/pi/rev/f28965132f63
changeset: 13997:f28965132f63
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Mon Oct 17 16:34:06 2011 +0200
summary:   Fixed issue 18780 - Fixed issue 17411: Now query list widget links 
works ok
when no 'Window' nor 'Window PO' defined in the column definition

diffstat:

 src/org/openbravo/erpCommon/utility/ReferencedLink.java |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c3b2ab5e195a -r f28965132f63 
src/org/openbravo/erpCommon/utility/ReferencedLink.java
--- a/src/org/openbravo/erpCommon/utility/ReferencedLink.java   Mon Oct 17 
12:01:15 2011 +0200
+++ b/src/org/openbravo/erpCommon/utility/ReferencedLink.java   Mon Oct 17 
16:34:06 2011 +0200
@@ -222,9 +222,13 @@
         if (data == null || data.length == 0)
           throw new ServletException("Window not found");
 
-        strWindowId = data[0].adWindowId;
-        if (!isSOTrx && !data[0].poWindowId.equals(""))
+        // only in case an adWindowId is returned
+        if (!data[0].adWindowId.equals("")) {
+          strWindowId = data[0].adWindowId;
+        }
+        if (!isSOTrx && !data[0].poWindowId.equals("")) {
           strWindowId = data[0].poWindowId;
+        }
       }
     }
     ReferencedLinkData[] data = ReferencedLinkData.select(this, strWindowId, 
strTableReferenceId);

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to