Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0040721 | Openbravo ERP | A. Platform | public | 2019-04-30 13:26 | 2019-05-31 09:43 |
|
Reporter | aferraz | |
Assigned To | caristu | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q3 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0040721: Mandatory field in pick and execute not correctly checked |
Description | Mandatory field in pick and execute not correctly checked |
Steps To Reproduce | - Create a Process Definition with a Pick and Execute parameter including a Date mandatory field
OR
- Use Add Special Schedule process definition in Schedule window included in: https://code.openbravo.com/erp/pmods-branches/org.openbravo.retail.config-crosspayment [^]
- Select a record in the pick and execute leaving the mandatory date field empty
- Click on Done
- Realize no error is shown |
Proposed Solution | Following line in ob-formitem-pickeditgrid.js seems to be wrong:
if (record[fields[j].name] === null || record[fields[j].name] === '' || record[fields[j] === undef]) { |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0040723 | | closed | caristu | Client validation not launched in Process Definition if record is not selected in a Pick and Execute without selected column | related to | defect | 0026722 | 3.0PR14Q3 | closed | guillermogil | P&E after selecting all the system does not check if the mandatory fields are set |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2019-04-30 13:26 | aferraz | New Issue | |
2019-04-30 13:26 | aferraz | Assigned To | => platform |
2019-04-30 13:26 | aferraz | Modules | => Core |
2019-04-30 13:26 | aferraz | Triggers an Emergency Pack | => No |
2019-04-30 13:38 | aferraz | Relationship added | related to 0040723 |
2019-04-30 13:42 | aferraz | Proposed Solution updated | |
2019-05-07 18:44 | caristu | Relationship added | related to 0026722 |
2019-05-28 18:55 | hgbot | Checkin | |
2019-05-28 18:55 | hgbot | Note Added: 0112214 | |
2019-05-28 18:55 | hgbot | Status | new => resolved |
2019-05-28 18:55 | hgbot | Resolution | open => fixed |
2019-05-28 18:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ea3c09846afd8af4f7b37583ae13de950cbf149d [^] |
2019-05-28 18:56 | caristu | Assigned To | platform => caristu |
2019-05-28 18:56 | caristu | Review Assigned To | => alostale |
2019-05-29 03:20 | hudsonbot | Checkin | |
2019-05-29 03:20 | hudsonbot | Note Added: 0112219 | |
2019-05-29 10:03 | hgbot | Checkin | |
2019-05-29 10:03 | hgbot | Note Added: 0112221 | |
2019-05-29 20:49 | hudsonbot | Checkin | |
2019-05-29 20:49 | hudsonbot | Note Added: 0112244 | |
2019-05-31 09:43 | alostale | Note Added: 0112290 | |
2019-05-31 09:43 | alostale | Status | resolved => closed |
2019-05-31 09:43 | alostale | Fixed in Version | => 3.0PR19Q3 |
Notes |
|
(0112214)
|
hgbot
|
2019-05-28 18:55
|
|
Repository: erp/devel/pi
Changeset: ea3c09846afd8af4f7b37583ae13de950cbf149d
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue May 28 18:48:54 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ea3c09846afd8af4f7b37583ae13de950cbf149d [^]
fixes bug 40721: Mandatory field in P&E grids not correctly checked
There was a wrong condition when checking if the mandatory fields in a record of a P&E grid. Fixing it together with minor improvements:
- Deleted wrong condition to check undefined value: "record[fields[j] === undef]"
- Use "!record[fields[j].name]" expression to check if the value is null or undefined
- Avoid unnecessary nested "if"
- Use "!lineNumbers" instead of "lineNumbers === undef"
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-pickeditgrid.js
---
|
|
|
|
|
|
(0112221)
|
hgbot
|
2019-05-29 10:03
|
|
Repository: erp/devel/pi
Changeset: 8671a3b792fffce9d045d8a8f4f34f701e15ba5c
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed May 29 10:00:12 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8671a3b792fffce9d045d8a8f4f34f701e15ba5c [^]
related to bug 40721: fix null/undefined check
Replaced "!record[fields[j].name]" with direct checking of null/undefined values. This is because if having a numeric field populated with a value of 0, the field was wrongly detected as empty.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-pickeditgrid.js
---
|
|
|
|
|
|
|
|