Roo/bootstrap/MoneyField.js
authoredward <edward@roojs.com>
Mon, 23 Apr 2018 11:23:16 +0000 (19:23 +0800)
committeredward <edward@roojs.com>
Mon, 23 Apr 2018 11:23:16 +0000 (19:23 +0800)
Roo/bootstrap/MoneyField.js

index 846faa7..1acfd06 100644 (file)
@@ -332,8 +332,8 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, {
         
         this.lastData = o;
         
-        if (this.displayField) {
-            dv = !o || typeof(o[this.displayField]) == 'undefined' ? '' : o[this.displayField];
+        if (this.currencyField) {
+            currency = !o || typeof(o[this.currencyField]) == 'undefined' ? '' : o[this.currencyField];
         } else {
             // this is an error condition!!!
             Roo.log('no  displayField value set for '+ (this.name ? this.name : this.id));