Skip to content

Commit

Permalink
Fix conditional use of argument -Title
Browse files Browse the repository at this point in the history
  • Loading branch information
igoravl committed Sep 10, 2015
1 parent 0a11812 commit 818af6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TfsCmdlets/TfsCmdlets/WorkItem/New-TfsWorkItem.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ Function New-TfsWorkItem
$wit = Get-TfsWorkItemType -Type $Type -Project $Project -Collection $Collection

$wi = $wit.NewWorkItem()
$wi.Title = $Title

if ($Title)
{
$wi.Title = $Title
}

foreach($field in $Fields)
{
Expand Down

0 comments on commit 818af6e

Please sign in to comment.