bleroy / Nwazet.Commerce

Idiomatic commerce module for Orchard CMS.
BSD 3-Clause "New" or "Revised" License
26 stars 21 forks source link

Adding Products to layout Fails on save or publish #76

Open bleroy opened 9 years ago

bleroy commented 9 years ago

Originally reported by: Jon Veder (Bitbucket: jonvee, GitHub: jonvee)


Adding a product to a page layout as a content item or within a projection placed in a page layout throws a HttpAntiForgeryException on save or publish.

My machine keys are fine and all other content types work within layouts (haven't tested forms yet)... So, I'm wondering if this is a bug..?

No logs written and the error message points to machine keys. Multiple antiforgery tokens causing problems?

Thanks!


bleroy commented 9 years ago

Original comment by Jon Veder (Bitbucket: jonvee, GitHub: jonvee):


For sure! Thanks Bertrand!

bleroy commented 9 years ago

Original comment by Bertrand Le Roy (Bitbucket: bleroy, GitHub: bleroy):


Yes, definitely. We'd need to tweak the preview of the product in the layout editor so it doesn't render a form. I won't have time to look at this right now. Can you avoid using products in layouts for now?