Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0044236 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | have not tried | 2020-05-29 10:47 | 2020-06-04 11:38 | |||
Reporter | jarmendariz | View Status | public | |||||
Assigned To | jarmendariz | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR20Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 868f0cf6ef0b | ||||
Projection | none | ETA | none | Target Version | RR20Q3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0044236: Action Preparations for Model actions receives the whole State instead of the Model | |||||||
Description | To remain consistent with the implementation of pre/post hooks, action functions and Model hooks, action preparations should receive only the part of the State related to the model. An exception to this rule is the action preparation of a global action. | |||||||
Steps To Reproduce | Create an action preparation for a Model action. For example: OB.App.StateAPI.TerminalLog.addLog.addActionPreparation( async (state, payload) => { payload.max = state.TerminalLog.eventsMaximumNumber; } ); Notice that you have to execute state.TerminalLog to access the TerminalLog properties. This should be the correct way: OB.App.StateAPI.TerminalLog.addLog.addActionPreparation( async (terminalLog, payload) => { payload.max = terminalLog.eventsMaximumNumber; } ); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0120573) hgbot (developer) 2020-06-03 11:36 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 868f0cf6ef0bfde1cec91f3c2503dea8b812dd39 Author: Javier Armendáriz <javier.armendariz <at> openbravo.com> Date: Mon Jun 01 11:06:10 2020 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/868f0cf6ef0bfde1cec91f3c2503dea8b812dd39 [^] Fixed ISSUE-44236: Action preparation first argument should contain only the model instead of the whole state An exception is the global action model. In this case it can receive the complete State object. --- M web-test/model/application-state/State.test.js M web/org.openbravo.mobile.core/app/model/application-state/State.js --- |
(0120574) hgbot (developer) 2020-06-03 11:36 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: bcf0169df475cb485b575ea85ada961f118dc675 Author: Javier Armendáriz <javier.armendariz <at> openbravo.com> Date: Mon Jun 01 11:53:26 2020 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bcf0169df475cb485b575ea85ada961f118dc675 [^] Related to ISSUE-44236: Refactored TerminalLog usages of action preparations --- M web-test/model/business-object/terminal-log/TerminalLog-AddButtonClick-ActionPreparation.test.js M web-test/model/business-object/terminal-log/TerminalLog-AddLog-ActionPreparation.test.js M web-test/model/business-object/terminal-log/TerminalLog-AddProcess-ActionPreparation.test.js M web-test/model/business-object/terminal-log/TerminalLog-Addkey-ActionPreparation.test.js M web/org.openbravo.mobile.core/app/model/business-object/terminal-log/TerminalLogUtils.js M web/org.openbravo.mobile.core/app/model/business-object/terminal-log/actions/AddButtonClick.js M web/org.openbravo.mobile.core/app/model/business-object/terminal-log/actions/AddKey.js M web/org.openbravo.mobile.core/app/model/business-object/terminal-log/actions/AddLog.js M web/org.openbravo.mobile.core/app/model/business-object/terminal-log/actions/AddProcess.js M web/org.openbravo.mobile.core/app/model/business-object/terminal-log/actions/SetContextAndPopup.js --- |
Issue History | |||
Date Modified | Username | Field | Change |
2020-05-29 10:47 | jarmendariz | New Issue | |
2020-05-29 10:47 | jarmendariz | Assigned To | => jarmendariz |
2020-05-29 10:47 | jarmendariz | Triggers an Emergency Pack | => No |
2020-05-29 10:47 | jarmendariz | Status | new => scheduled |
2020-06-03 11:36 | hgbot | Checkin | |
2020-06-03 11:36 | hgbot | Note Added: 0120573 | |
2020-06-03 11:36 | hgbot | Status | scheduled => resolved |
2020-06-03 11:36 | hgbot | Resolution | open => fixed |
2020-06-03 11:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/868f0cf6ef0bfde1cec91f3c2503dea8b812dd39 [^] |
2020-06-03 11:36 | hgbot | Checkin | |
2020-06-03 11:36 | hgbot | Note Added: 0120574 | |
2020-06-04 11:26 | caristu | Review Assigned To | => caristu |
2020-06-04 11:26 | caristu | Status | resolved => closed |
2020-06-04 11:26 | caristu | Fixed in Version | => RR20Q3 |
2020-06-04 11:38 | caristu | Relationship added | related to 0043701 |
Copyright © 2000 - 2009 MantisBT Group |