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

Craft Commerce "Add to Cart" error if field with handle 'behaviors' exists #4184

Closed
jasonleelab opened this issue Apr 26, 2019 · 1 comment
Closed

Comments

@jasonleelab
Copy link

Description

Cannot add to cart in Craft Commerce if there is a field with handle: behaviors.

Steps to reproduce

  1. Create a field called "Behaviors" with handle: behaviors
  2. Using Craft Commerce, try and add to cart. You'll receive "PHP Fatal Error". Screenshot: https://cl.ly/c855a1cf399e

Additional info

  • Craft version: 3.1.24
  • PHP version: 7.2.1
  • Database driver & version: PostgreSQL 11.2
  • Plugins & versions: Commerce LITE 2.1.3.1
@brandonkelly
Copy link
Member

Yeah that make sense, it’s triggering an infinite recursive loop since elements already have a concept of behaviors. I’ll mark that as a a reserved field handle.

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

2 participants