Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0054184 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2023-12-21 09:47 | 2023-12-21 09:48 | |||||||
Reporter | mtaal | View Status | public | |||||||||
Assigned To | Triage Platform Base | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
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 | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
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. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | t-not-defined.png [^] (16,907 bytes) 2023-12-21 09:48
| |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
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 |
Copyright © 2000 - 2009 MantisBT Group |