Skip to content

Commit

Permalink
Forced explicit .ToString on $PSCmdlet.ShouldProcess()
Browse files Browse the repository at this point in the history
  • Loading branch information
hmmwhatsthisdo committed May 29, 2018
1 parent 2b5215a commit d687cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JiraPS/Public/Remove-JiraIssue.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Remove-JiraIssue {
$ActionText = "Remove issue"
}

if ($PSCmdlet.ShouldProcess($issueoBj, $ActionText)) {
if ($PSCmdlet.ShouldProcess($issueObj.ToString(), $ActionText)) {

Write-Debug "[$($MyInvocation.MyCommand.Name)] Invoking JiraMethod with `$parameter"
Invoke-JiraMethod @parameter
Expand Down

0 comments on commit d687cff

Please sign in to comment.