Related to issue 26722:On P&E system does not check the mandatory fields
authorGuillermo Gil <guillermo.gil@openbravo.com>
Mon, 02 Jun 2014 12:57:42 +0200
changeset 23522 668f36bc5e77
parent 23521 4070edaaab75
child 23523 8c8c5fe578d7
Related to issue 26722:On P&E system does not check the mandatory fields

Use simple quotes enstead double quotes
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js	Mon Jun 02 10:39:51 2014 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js	Mon Jun 02 12:57:42 2014 +0200
@@ -69,7 +69,7 @@
           record = grid.getEditedRecord(grid.getRecordIndex(selection[i]));
           for (j = 0; j < fields.length; j++) {
             if (fields[j].required) {
-              if (record[fields[j].name] === null || record[fields[j].name] === "" || record[fields[j] === undef]) {
+              if (record[fields[j].name] === null || record[fields[j].name] === '' || record[fields[j] === undef]) {
                 hasErrors = true;
                 if (lineNumbers === undef) {
                   lineNumbers = grid.getRecordIndex(selection[i]).toString();