details: /erp/devel/pi/rev/437ee4de45ac
changeset: 8199:437ee4de45ac
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Aug 23 14:15:41 2010 +0200
summary: Fixes issue https://issues.openbravo.com/view.php?id=14255
diffstat:
src/org/openbravo/erpCommon/utility/ComboTableData.java | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r d1ae61b55653 -r 437ee4de45ac
src/org/openbravo/erpCommon/utility/ComboTableData.java
--- a/src/org/openbravo/erpCommon/utility/ComboTableData.java Mon Aug 23
13:41:08 2010 +0200
+++ b/src/org/openbravo/erpCommon/utility/ComboTableData.java Mon Aug 23
14:15:41 2010 +0200
@@ -807,8 +807,16 @@
* @throws Exception
*/
public void identifier(String tableName, FieldProvider field) throws
Exception {
- UIReference uiref = Reference.getUIReference(field == null ?
getReferenceType() : field
- .getField("reference"), null);
+ UIReference uiref;
+ if (field == null) {
+ uiref = Reference.getUIReference(getReferenceType(), null);
+ } else {
+ String referenceId = field.getField("referenceValue");
+ if (referenceId == null || referenceId.length() == 0) {
+ referenceId = field.getField("reference");
+ }
+ uiref = Reference.getUIReference(referenceId, null);
+ }
uiref.setComboTableDataIdentifier(this, tableName, field);
}
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits