Skip to content

Commit

Permalink
Merge of #576. Thanks @jackpoz
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenbe committed Feb 7, 2022
1 parent dc18318 commit 1632f43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Additional changes for fix #498, improving header provisioning scenario #562 [fzbm - Florian Zink]
- Catching File.NotFound exception to prevent error during export #573 [magarma - Miguel Angel García Martínez]
- Check for null before foreach to avoid nullExceptionIssue #574 [magarma - Miguel Angel García Martínez]
- Fix Clear-PnPDefaultColumnValues not working with taxonomy fields #576 [jackpoz - Giacomo Pozzoni]

## [1.8.0]

Expand Down
2 changes: 2 additions & 0 deletions src/lib/PnP.Framework/Extensions/ListExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,9 @@ public static View GetViewByName(this List list, string name, params Expression<
private static void SetDefaultColumnValuesImplementation(this List list, IEnumerable<IDefaultColumnValue> columnValues)
{
if (columnValues == null || !columnValues.Any())
{
list.ClearDefaultColumnValues();
}

using (var clientContext = list.Context as ClientContext)
{
Expand Down

0 comments on commit 1632f43

Please # to comment.