Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 82e91a3

Browse files
committed
Merge branch 'dev'
2 parents 7174908 + 482ee09 commit 82e91a3

File tree

9 files changed

+24
-7
lines changed

9 files changed

+24
-7
lines changed
0 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
77

8+
## [3.21.2005.0]
9+
10+
### Added
11+
12+
### Changed
13+
- Invoke-PnPSearchQuery: Allow SelectProperties to take a comma separated string as well as an array
14+
15+
### Contributors
16+
817
## [3.20.2004.0]
918

1019
### Added

Commands/Admin/GetHubSiteChild.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace SharePointPnP.PowerShell.Commands.Admin
1919
public class GetHubSiteChild : PnPAdminCmdlet
2020
{
2121
[Parameter(ValueFromPipeline = true, Mandatory = true, HelpMessage = "The URL of the hubsite for which to receive the sites refering to it")]
22-
public HubSitePipeBind Identity { get; set; }
22+
public HubSitePipeBind Identity;
2323

2424
protected override void ExecuteCmdlet()
2525
{

Commands/Base/ConnectOnline.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ private void ConnectGraphAAD()
10161016
#if !NETSTANDARD2_1
10171017
var clientApplication = ConfidentialClientApplicationBuilder.Create(AppId).WithClientSecret(AppSecret).WithRedirectUri(RedirectUri).WithAuthority(authority).Build();
10181018
var authenticationResult = clientApplication.AcquireTokenForClient(GraphDefaultScope).ExecuteAsync().GetAwaiter().GetResult();
1019+
SPOnlineConnection.AuthenticationResult = authenticationResult;
10191020
#else
10201021
throw new NotImplementedException();
10211022
#endif

Commands/Base/InitializePowerShellAuthentication.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
namespace SharePointPnP.PowerShell.Commands.Base
1919
{
2020
[Cmdlet(VerbsData.Initialize, "PnPPowerShellAuthentication")]
21-
21+
[CmdletHelp(@"Initializes a Azure AD App and optionally creates a new self-signed certificate to use with the application registration.",
22+
Category = CmdletHelpCategory.TenantAdmin,
23+
SupportedPlatform = CmdletSupportedPlatform.Online)]
2224
[CmdletAdditionalParameter(ParameterType = typeof(string[]), ParameterName = "Scopes", HelpMessage = "Specify which permissions scopes to request.", ParameterSetName = ParameterSet_NEWCERT)]
2325
[CmdletAdditionalParameter(ParameterType = typeof(string[]), ParameterName = "Scopes", HelpMessage = "Specify which permissions scopes to request.", ParameterSetName = ParameterSet_EXISTINGCERT)]
2426

Commands/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
// You can specify all the values or you can default the Build and Revision Numbers
4949
// by using the '*' as shown below:
5050
// [assembly: AssemblyVersion("1.0.*")]
51-
[assembly: AssemblyVersion("3.20.2004.0")]
52-
[assembly: AssemblyFileVersion("3.20.2004.0")]
51+
[assembly: AssemblyVersion("3.21.2005.1")]
52+
[assembly: AssemblyFileVersion("3.21.2005.1")]
5353
[assembly: InternalsVisibleTo("SharePointPnP.PowerShell.Tests")]

Commands/Search/SubmitSearchQuery.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,16 @@ private KeywordQuery CreateKeywordQuery()
239239
}
240240
if (SelectProperties != null)
241241
{
242+
keywordQuery.SelectProperties.Clear();
242243
var selectProperties = keywordQuery.SelectProperties;
243-
selectProperties.Clear();
244+
if (SelectProperties.Length == 1 && SelectProperties[0].Contains(","))
245+
{
246+
SelectProperties = SelectProperties[0].Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
247+
}
248+
244249
foreach (string property in SelectProperties)
245250
{
246-
selectProperties.Add(property);
251+
selectProperties.Add(property.Trim());
247252
}
248253
}
249254
if (RefinementFilters != null)

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.20.2004.0
1+
3.21.2005.1

0 commit comments

Comments
 (0)