Author: Hugo Melo <hugo@riseup.net>
Merge branch 'master' of https://github.com/samasti/noosfero
plugins/suppliers/public/javascripts/views/product-modal.tag.slim | 2
diff --git a/plugins/suppliers/public/javascripts/views/product-modal.tag.slim b/plugins/suppliers/public/javascripts/views/product-modal.tag.slim index 83df033a47bf03328231fd2d4df98c39efe82cea..23661359a88a4fac7fc39773e89ec463b8fff69b 100644 --- a/plugins/suppliers/public/javascripts/views/product-modal.tag.slim +++ b/plugins/suppliers/public/javascripts/views/product-modal.tag.slim @@ -227,7 +227,7 @@ if (keys[i] == 'supplier_id' && this.product.id) continue; // to validate category need to see the id instead of the input - if (keys[i] == 'product_category_id' && !this.product.product_category_id.trim()) + if (keys[i] == 'product_category_id' && !this.product.product_category_id) input.value = "" if (input.value.trim() == "" || input.value == "0") { alert(this.t('views.product.validation_error_'+keys[i]))