details: https://code.openbravo.com/erp/devel/pi/rev/7e946dc8cf91
changeset: 15156:7e946dc8cf91
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Mon Jan 16 18:14:41 2012 +0100
summary: Fixed issue 17166. Attribute set value formitem will be disabled if
the product doesn't have a valid attribute set.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search-attribute.js
| 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r 6b42245e27d4 -r 7e946dc8cf91
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search-attribute.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search-attribute.js
Mon Jan 16 17:42:42 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search-attribute.js
Mon Jan 16 18:14:41 2012 +0100
@@ -47,5 +47,14 @@
parameters[index++] = 'inpProduct';
parameters[index++] = values.inpmProductId;
this.openSearchWindow('/info/AttributeSetInstance.html', parameters,
this.getValue());
+ },
+
+ isDisabled:function(){
+ if (this.form.values.ATTRIBUTESET && this.form.values.ATTRIBUTESET!=='') {
+ this.Super('isDisabled', arguments);
+ } else {
+ return true;
+ }
}
+
});
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits