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

v9 Starter Kit Macro Partial "FeaturedProduct" throws error: Value cannot be null. (Parameter 'source') #95

Open
idseefeld opened this issue Apr 4, 2022 · 0 comments

Comments

@idseefeld
Copy link

Which exact Umbraco version are you using? For example: 9.0.1 - don't just write v9
9.4.2

Bug summary
The macro "Select Featured Products" throws an error:

Value cannot be null. (Parameter 'source')

Specifics
No response

Steps to reproduce
I am using a fresh install of v9.4.2.
I have tried to insert "Select Featured Products" macro on the Homepage and got the error after selecting a product and submitting.

Expected result / actual result
After changing line 17 of Settings > Partial View Macro Files > FeaturedProducts.cshtml to:

var selection = Model.MacroParameters.FirstOrDefault(p => p.Key == "product").Value?.ToString().Split(',');
the macro works. And I could also update the product parameter of Settings > Macros > Select Featured Products from Content Picker to Multiple Content Picker.

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

No branches or pull requests

1 participant