details:   /erp/devel/pi/rev/e57b3dee044b
changeset: 9813:e57b3dee044b
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Fri Jan 14 13:09:19 2011 +0100
summary:   Solved error when FIC returns call

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
 |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r c0122525cc3f -r e57b3dee044b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Fri Jan 14 12:34:26 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Fri Jan 14 13:09:19 2011 +0100
@@ -265,7 +265,9 @@
     if (field.name === OB.Constants.ID) {
       return;
     }
-    if (entries) {
+    // note field can be a datasource field, see above, in that case
+    // don't set the entries
+    if (field.form && entries) {
       if (field.getDataSource()) {
         field.getDataSource().setCacheData(entries, true);
       } else {

------------------------------------------------------------------------------
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