Skip to content

Commit

Permalink
+ (Workflow) Fixed issue in the WorkflowEntry block where the "Cancel…
Browse files Browse the repository at this point in the history
…" button on a WorkflowForm doesn't do anything without an "Activate Activity" assigned to it. (Fixes #5357)
  • Loading branch information
ethan-sparkdevnetwork committed Mar 27, 2023
1 parent 44f2f84 commit e6305da
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions RockWeb/Blocks/WorkFlow/WorkflowEntry.ascx.cs
Expand Up @@ -386,13 +386,6 @@ public void RaisePostBackEvent( string eventArgument )
*/
var formUserActions = WorkflowActionFormUserAction.FromUriEncodedString( _actionType.WorkflowForm.Actions );
var formUserAction = formUserActions.FirstOrDefault( x => x.ActionName == eventArgument );
var hasActivateActivity = formUserAction != null && formUserAction.ActivateActivityTypeGuid != string.Empty;

if ( formUserAction != null && !formUserAction.CausesValidation && !hasActivateActivity )
{
// Out if the action does not cause validation and does not have an Activate Activity.
return;
}

if ( formUserAction != null && formUserAction.CausesValidation )
{
Expand Down

0 comments on commit e6305da

Please sign in to comment.