Problem/Motivation

An invalid conditions could cause Problems like PluginNotFoundException. It would be nice to filter out these "plugins" before using them. An indicator for an invalid condition/plugin could be the missing 'id'.

Proposed resolution

$conditions_data = array_filter($condition_group['value'], function ($condition) {
  return !empty($condition['id']);
});

Issue fork conditions-3539551

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

drupatz created an issue. See original summary.

drupatz’s picture

Status: Active » Needs review
hydra’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hm this should not happen by default, since every condition must have an id. I can only imagine that a custom update script killed that.

hydra’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

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.