Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Processing work queue command actions failed. #1737

Merged
merged 1 commit into from Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion backend/Origam.Server/ServerCoreUIService.cs
Expand Up @@ -451,6 +451,10 @@ public IList RowStates(RowStatesInput input)
ExecuteActionQueryInput input)
{
EntityUIAction action = GetAction(input.ActionId);
// work queue commands are treated as actions,
// but they're not part of the model,
// so the GetAction can return null
// the subsequent code needs to be able to handle it
if (action is EntityMenuAction menuAction)
{
bool isAuthorized = SecurityManager.GetAuthorizationProvider().Authorize(
Expand All @@ -469,7 +473,7 @@ public IList RowStates(RowStatesInput input)
var sessionStore = sessionManager.GetSession(
input.SessionFormIdentifier);
if (sessionStore.IsDelayedLoading &&
action.Mode == PanelActionMode.MultipleCheckboxes &&
action?.Mode == PanelActionMode.MultipleCheckboxes &&
action is EntityWorkflowAction workflowAction &&
workflowAction.MergeType != ServiceOutputMethod.Ignore)
{
Expand Down