- Issue created by @AlfTheCat
I have a CSS rule that reacts on Commerce product type. When I try to duplicate a product variation (core Commerce feature), I get an error and the process fails. Disabling the rule fixes the issue.
The error is as follows: When trying to duplicate a variation, I get the following error and the process fails:
Error: Call to a member function bundle() on string in Drupal\Core\Entity\Plugin\Condition\EntityBundle->evaluate() (line 92 of /var/www/***/core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php).
- Install drupal Commerce
- Create a CSS Asset Injector rule that reacts on the default product type
- Create a default product
- Add a variation
- Attempt to duplicate the variation - Site crashes.
- Disable the rule
- Try to duplicate the variation again, this time it will work
Active
2.0
Code