Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3236: Directly operate on List #3244

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Fix #3236: Directly operate on List #3244

merged 1 commit into from
Jul 5, 2023

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