Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030134 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | always | 2015-06-09 12:49 | 2022-09-05 09:37 | |||
Reporter | aferraz | View Status | public | |||||
Assigned To | NaroaIriarte | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0PR15Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | e28ea5f9e072 | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q3 | |||
OS | Linux 64 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Professional Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030134: Error when executing a Process Definition if a parameter has defined a numeric default value | |||||||
Description | Error when executing a Process Definition if a parameter has defined a numeric default value | |||||||
Steps To Reproduce | As System Admin: - Open "Set New Currency" in Process Definition window Open "Rate" in Parameter tab Realize default value is = 1 (if not, set it) As F&B Admin: - Select any record in Business Partner window Click on "Set New Currency" button Realize in chrome console the following exception is raised: "Uncaught TypeError: numberStr.match is not a function" | |||||||
Proposed Solution | In ob-utilities-number.js check if numberStr is a number instead of a string and in this case convert it to string before accessing to numberStr.match and to numberStr.substring | |||||||
Tags | No tags attached. | |||||||
Attached Files | issue30134.diff [^] (1,901 bytes) 2015-06-25 16:33 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0078538) hgbot (developer) 2015-06-26 14:25 |
Repository: erp/devel/pi Changeset: e28ea5f9e072de849b72e2b815c140cd5a2ae54f Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com> Date: Thu Jun 25 16:37:07 2015 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/e28ea5f9e072de849b72e2b815c140cd5a2ae54f [^] Fixed issue 30134: Error executing a process definition if a param. is numeric The problem was that if a parameter was defined as default with a numeric value, an error was got. The problem was in the "ob-parameter-window-view.js", there is a function called getTypeSafeValue which was not taking into account the fact of having the "value" argument as a numeric value. That was why it was not working fine. To fix this a new condition has been added. Now it is checked if the "value" parameter is a number. --- M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js --- |
(0078539) caristu (developer) 2015-06-26 14:28 |
Code review + tested OK |
(0078578) hudsonbot (developer) 2015-06-30 00:54 |
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/8d846f99ad0b [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2015-06-09 12:49 | aferraz | New Issue | |
2015-06-09 12:49 | aferraz | Assigned To | => platform |
2015-06-09 12:49 | aferraz | Modules | => Core |
2015-06-09 12:49 | aferraz | Triggers an Emergency Pack | => No |
2015-06-09 12:52 | aferraz | Relationship added | related to 0030077 |
2015-06-18 09:18 | alostale | Priority | normal => high |
2015-06-18 09:18 | alostale | Status | new => acknowledged |
2015-06-18 09:18 | alostale | Assigned To | platform => NaroaIriarte |
2015-06-24 19:10 | caristu | Status | acknowledged => scheduled |
2015-06-25 16:31 | NaroaIriarte | Issue Monitored: alostale | |
2015-06-25 16:31 | NaroaIriarte | Review Assigned To | => alostale |
2015-06-25 16:33 | NaroaIriarte | File Added: issue30134.diff | |
2015-06-26 14:16 | NaroaIriarte | Review Assigned To | alostale => caristu |
2015-06-26 14:16 | NaroaIriarte | Issue Monitored: caristu | |
2015-06-26 14:25 | hgbot | Checkin | |
2015-06-26 14:25 | hgbot | Note Added: 0078538 | |
2015-06-26 14:25 | hgbot | Status | scheduled => resolved |
2015-06-26 14:25 | hgbot | Resolution | open => fixed |
2015-06-26 14:25 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/e28ea5f9e072de849b72e2b815c140cd5a2ae54f [^] |
2015-06-26 14:25 | caristu | Fixed in Version | => 3.0PR15Q3 |
2015-06-26 14:28 | caristu | Note Added: 0078539 | |
2015-06-26 14:28 | caristu | Status | resolved => closed |
2015-06-30 00:54 | hudsonbot | Checkin | |
2015-06-30 00:54 | hudsonbot | Note Added: 0078578 | |
2022-09-05 09:37 | Yukisan | Note Added: 0140693 | |
2022-09-05 12:04 | shuehner | Note Deleted: 0140693 |
Copyright © 2000 - 2009 MantisBT Group |