Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0054184
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2023-12-21 09:472023-12-21 09:48
ReportermtaalView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0054184: CORE2: useEnabledUserAction should return default not-defined user-action when user-action not linked to Role

DescriptionSee 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 SolutionReturn a default useraction which shows a correct message to the user, something like:
User action xxx not defined for this role.
TagsNo tags attached.
Attached Filespng file icon t-not-defined.png [^] (16,907 bytes) 2023-12-21 09:48

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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
Powered by Mantis Bugtracker