Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0054184 | Openbravo ERP | A. Platform | public | 2023-12-21 09:47 | 2023-12-21 09:48 |
Reporter | mtaal | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
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 | 0054184: CORE2: useEnabledUserAction should return default not-defined user-action when user-action not linked to Role | ||||
Description | See the code below [1] to get a user action. If the user's role does not have this user action linked to it then the useEnabledUserAction returns something which is not a function. This gives a low level (see attached). const switchToGrouped = useEnabledUserAction( 'SwitchCurrentWindow_OBSSMS_GroupedTasksWindow' ); | ||||
Steps To Reproduce | Add the above code somewhere in pos2, run pos2 to check and see that the useraction is not a function. | ||||
Proposed Solution | Return a default useraction which shows a correct message to the user, something like: User action xxx not defined for this role. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | t-not-defined.png (16,907) 2023-12-21 09:48 https://issues.openbravo.com/file_download.php?file_id=19245&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2023-12-21 09:47 | mtaal | New Issue | |||
2023-12-21 09:47 | mtaal | Assigned To | => Triage Platform Base | ||
2023-12-21 09:47 | mtaal | Modules | => Core | ||
2023-12-21 09:47 | mtaal | Triggers an Emergency Pack | => No | ||
2023-12-21 09:48 | mtaal | File Added: t-not-defined.png |
There are no notes attached to this issue. |