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

Commit e495aec

Browse files
Merge pull request #1502 from erwinvanhunen/dev
Manual merge of PR #546
2 parents 2984cdb + 51c2e91 commit e495aec

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
2323

2424
### Changed
2525

26+
- Added additional properties to Set-PnPList
2627
- ALM Cmdlets (Add-PnPApp, etc.) now allow for specifying the app title instead of only an id.
2728
- Updated Set-PnPInPlaceRecordsManagement cmdlet to use a -Enabled parameter instead of -On and -Off
2829
- Add-PnPClientSideWebPart and Add-PnPClientSideText now return the client side component added
@@ -36,6 +37,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
3637
- Fixed Set-PnPUserProfileProperty cmdlet to accept $null values to clear properties
3738
- Fixed Invoke-PnPSiteDesign where you connected to the -admin URL, and it ignored the WebUrl parameter when applying the site design
3839
- Added WebUrl parameter to Set-PnPWebTheme to support connection via -admin URL needed by app-only connections
40+
- Fixed issue with
3941

4042
### Deprecated
4143
- Deprecated -Header parameter on Add-PnPNavigationNode in favor or -Parent [Id]
@@ -44,6 +46,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4446
- Deprecated Connect-PnPHubSite. Use Add-PnPHubSiteAssociation
4547
- Deprecated Disconnect-PnPHubSite. Use Remove-PnPHubSiteAssociation
4648

49+
### Contributors
50+
casselc
51+
stevebeauge
52+
velingeorgiev
53+
cebud
54+
jensotto
55+
4756

4857
## [2.24.1803.0] - 2018-03-06
4958
### Added

Commands/Lists/SetList.cs

+18
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,18 @@ public bool
5959
[Parameter(Mandatory = false, HelpMessage = "The title of the list")]
6060
public string Title = string.Empty;
6161

62+
[Parameter(Mandatory = false, HelpMessage = "The description of the list")]
63+
public string Description;
64+
6265
[Parameter(Mandatory = false, HelpMessage = "Hide the list from the SharePoint UI. Set to $true to hide, $false to show.")]
6366
public bool Hidden;
6467

6568
[Parameter(Mandatory = false, HelpMessage = "Enable or disable attachments. Set to $true to enable, $false to disable.")]
6669
public bool EnableAttachments;
6770

71+
[Parameter(Mandatory = false, HelpMessage = "Enable or disable folder creation. Set to $true to enable, $false to disable.")]
72+
public bool EnableFolderCreation;
73+
6874
[Parameter(Mandatory = false, HelpMessage = "Enable or disable versioning. Set to $true to enable, $false to disable.")]
6975
public bool EnableVersioning;
7076

@@ -142,6 +148,18 @@ protected override void ExecuteCmdlet()
142148
isDirty = true;
143149
}
144150

151+
if(MyInvocation.BoundParameters.ContainsKey("Description"))
152+
{
153+
list.Description = Description;
154+
isDirty = true;
155+
}
156+
157+
if(MyInvocation.BoundParameters.ContainsKey("EnableFolderCreation"))
158+
{
159+
list.EnableFolderCreation = EnableFolderCreation;
160+
isDirty = true;
161+
}
162+
145163
if (isDirty)
146164
{
147165
list.Update();

0 commit comments

Comments
 (0)