Bug in feature revert / import parsing

Created on 10 March 2021, over 3 years ago
Updated 6 June 2023, over 1 year ago

Problem/Motivation

When running drush fr feature_foo, warnings are emitted, like

[warning] Undefined array key 1 FeaturesCommands.php:728

Steps to reproduce

  • Create a feature called feature_foo in a bundle called bar.
  • Run drush fr feature_foo
  • Observe the above-mentioned warning

Data is actually correct in spite of the warning, because $component is set to empty, and handled as such anyway.

Proposed resolution

Avoid the warning by appending, probably by appending an extra ":" at the end of the featureString.

Remaining tasks

Do it.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡«πŸ‡·France fgm Paris, France

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024