Problem/motivation

Similar to what was described and recently fixed in Drupal core in #3537774: text_textarea_with_summary widget fails if violation lacks value/summary in property path, this module's validation fails (where it didn't before) when the tab value is left empty.

Steps to reproduce

  1. Create a field of type Bootstrap Horizontal Tab
  2. Attempt to save it, leaving the tab label value blank
  3. You should get a validation warning, but instead, there is a fatal error, with Warning: Undefined property: Symfony\Component\Validator\ConstraintViolation::$arrayPropertyPath

Proposed resolution

Same resolution as in #3537774: text_textarea_with_summary widget fails if violation lacks value/summary in property path

This module uses Gitlab CI for automated testing of proposed code changes. To contribute code changes, create a merge request. Patch files will not trigger automated testing and are not sufficient for review.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mark_fullmer created an issue. See original summary.

mark_fullmer’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.