Skip to content

Commit 30939e5

Browse files
committed
set null if parameter AvailableToOtherTenants is not set
1 parent 8ce80f5 commit 30939e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/Resources/ActiveDirectory/Cmdlets/UpdateAzureADApplicationCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public override void ExecuteCmdlet()
102102
Homepage = HomePage,
103103
IdentifierUris = IdentifierUri,
104104
ReplyUrls = ReplyUrl,
105-
AvailableToOtherTenants = AvailableToOtherTenants
105+
AvailableToOtherTenants = MyInvocation.BoundParameters.ContainsKey("AvailableToOtherTenants") ? AvailableToOtherTenants : (bool?)null
106106
};
107107

108108
if (ShouldProcess(target: ObjectId, action: string.Format("Updating an application with object id '{0}'", ObjectId)))

0 commit comments

Comments
 (0)