Skip to content

Fix #3236: Directly operate on List#3244

Merged
gautamdsheth merged 1 commit intopnp:devfrom
nils-a-forks:feature/GH-3236
Jul 5, 2023
Merged

Fix #3236: Directly operate on List#3244
gautamdsheth merged 1 commit intopnp:devfrom
nils-a-forks:feature/GH-3236

Conversation

@nils-a
Copy link

@nils-a nils-a commented Jul 5, 2023

Before creating a pull request, make sure that you have read the contribution file located at

https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #3236

What is in this Pull Request ?

The old code retrieved the List object, to then call a helper and pass the title of the list.
The helper, in turn, retrieves the list (again) by its title to then add the ContentType.
Since the method already has a reference to the list, we can forgo the helper.

Summary

copilot:summary

Details

copilot:walkthrough

The old code retrieves the List object,
to then call a helper and pass the title of the list.

The helper, in turn, retrieves the list (again) by its title
to then add the ContentType.

Since the method already has a reference to the list,
we can forgo the helper.
@gautamdsheth
Copy link
Collaborator

Ahh , my bad ☹️
This totally makes sense.
Thank you so much for digging deeper and fixing it 🙏

@gautamdsheth gautamdsheth merged commit 2e60377 into pnp:dev Jul 5, 2023
@nils-a nils-a deleted the feature/GH-3236 branch February 10, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Unable to add ContentType to List when Site was created in german.

3 participants