From c0b4b0e4c110b014a0c4e4bfcd5980b951ca20b3 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Mon, 16 Sep 2013 15:33:19 -0400 Subject: [PATCH] fix(core): JsonHelpers - Merge-JsonNamedValue - would not properly set values when stored value equal to $false --- core/JsonHelpers.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/JsonHelpers.ps1 b/core/JsonHelpers.ps1 index b697f80..396eda7 100644 --- a/core/JsonHelpers.ps1 +++ b/core/JsonHelpers.ps1 @@ -61,7 +61,7 @@ function Merge-JsonNamedValue $Value ) - if (!$Destination.$Name) + if (!($Destination | Get-Member -Name $Name)) { $Destination | Add-Member -Name $Name -Value $Value -MemberType NoteProperty