Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0044236 | Retail Modules | Web POS | public | 2020-05-29 10:47 | 2020-06-04 11:38 | |||||||
Reporter | jarmendariz | |||||||||||
Assigned To | jarmendariz | |||||||||||
Priority | high | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR20Q3 | Fixed in Version | RR20Q3 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
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; } ); | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|