details:   /erp/devel/pi/rev/99cb569eaa0d
changeset: 9818:99cb569eaa0d
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Fri Jan 14 17:25:50 2011 +0100
summary:   Solved wrong combo computation for button list refs

diffstat:

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

diffs (16 lines):

diff -r e5663817c7b2 -r 99cb569eaa0d 
src/org/openbravo/erpCommon/utility/ComboTableData.java
--- a/src/org/openbravo/erpCommon/utility/ComboTableData.java   Fri Jan 14 
17:22:39 2011 +0100
+++ b/src/org/openbravo/erpCommon/utility/ComboTableData.java   Fri Jan 14 
17:25:50 2011 +0100
@@ -809,7 +809,11 @@
   public void identifier(String tableName, FieldProvider field) throws 
Exception {
     UIReference uiref;
     if (field == null) {
-      uiref = Reference.getUIReference(getReferenceType(), null);
+      if (getObjectReference() != null && getObjectReference().length() > 0) {
+        uiref = Reference.getUIReference(getReferenceType(), 
getObjectReference());
+      } else {
+        uiref = Reference.getUIReference(getReferenceType(), null);
+      }
     } else {
       uiref = Reference.getUIReference(field.getField("reference"), field
           .getField("referenceValue"));

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to