PnP-Sites-Core
PnP-Sites-Core copied to clipboard
Update ObjectFiles.cs
Setting properties before checking in causes an error. ref issue: #1831
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
New sample? | no |
Related issues? | fixes #1831, mentioned in #2335 |
What's in this Pull Request?
Setting properties before checking in causes an error "The file is not checked out" when trying to set the webparts in a file while provisioning a pnp template. The fix was to move the update properties logic before the check in happens.
Hi @bricenocar , this change conflicts with the change done a while ago by @czullu (https://github.com/pnp/PnP-Sites-Core/pull/2610). Can you cross check this PR with him and if needed update. @czullu's case seems to handle "Libraries with ForceCheckout", so that might be the difference. If so that must then be taken in account into this PR.