Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0040721 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2019-04-30 13:26 | 2019-05-31 09:43 | |||
Reporter | aferraz | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR19Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | ea3c09846afd | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
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]) { | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0112214) hgbot (developer) 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 --- |
(0112219) hudsonbot (developer) 2019-05-29 03:20 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f61d63883754 [^] Maturity status: Test |
(0112221) hgbot (developer) 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 --- |
(0112244) hudsonbot (developer) 2019-05-29 20:49 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0705db562021 [^] Maturity status: Test |
(0112290) alostale (manager) 2019-05-31 09:43 |
reviewed + tested |
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 |
Copyright © 2000 - 2009 MantisBT Group |