Adding a product in commerce with no entity steps defined

Created on 4 February 2025, 4 months ago

When I'm adding a product to commerce, which has no field groups and no entity steps, im hitting these errors

  • Warning: Undefined array key "form_display" in Drupal\entity_form_steps\Form\EntityFormSteps::getSteps() (line 30 of /var/www/sites/test.site/web/modules/contrib/entity_form_steps/src/Form/EntityFormSteps.php)
  • Error: Call to a member function getThirdPartySettings() on null in Drupal\entity_form_steps\Form\EntityFormSteps::getSteps() (line 32 of /var/www/sites/test.site/web/modules/contrib/entity_form_steps/src/Form/EntityFormSteps.php).

So In the types in commerce I have no field_groups defined, and don't need entity_form_steps. I am using it in other types, and they are working perfectly.

A hacky get around to at least allow me to enter some products, Ive added :-

line 31: entity_form_steps/src/Form/EntityFormSteps.php

if ($formDisplay == null) { return array(); }

This seems to work, except for the warning in the logs, but what I'd like is a more elegant solution ?

Thanks for a great module.

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇦🇺Australia digitalcatalyst

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024