Skip to content

Commit

Permalink
+ Fixed an issue where the WorkflowEntry block would get stuck in a l…
Browse files Browse the repository at this point in the history
…oop if it was passed a command value in the query string. (Fixes #2749)
  • Loading branch information
azturner committed Feb 9, 2018
1 parent 604d475 commit 5d066e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RockWeb/Blocks/WorkFlow/WorkflowEntry.ascx.cs
Expand Up @@ -819,6 +819,11 @@ private void CompleteFormAction( string formAction )
{
var cb = CurrentPageReference;
cb.Parameters.AddOrReplace( "WorkflowId", _workflow.Id.ToString() );
foreach ( var key in cb.QueryString.AllKeys.Where( k => !k.Equals( "Command", StringComparison.OrdinalIgnoreCase ) ) )
{
cb.Parameters.AddOrIgnore( key, cb.QueryString[key] );
}
cb.QueryString = new System.Collections.Specialized.NameValueCollection();
Response.Redirect( cb.BuildUrl(), false );
Context.ApplicationInstance.CompleteRequest();
}
Expand Down

0 comments on commit 5d066e2

Please sign in to comment.