typo in variable name in entityreference_field_views_data_views_data_alter()

Created on 3 April 2023, about 1 year ago
Updated 28 April 2023, about 1 year ago

In this bit of function entityreference_field_views_data_views_data_alter() there's an undefined variable, "$entity":

      $entity_info = entity_get_info($entity_type);
      if (empty($entity_info)) {
        watchdog(
          'entityreference',
          'Field %field_name refers to nonexistent entity type %type. You might want to remove this broken field instance. <a href="https://www.drupal.org/docs/7/modules/views/data-fix-field-field-refers-to-nonexistent-entity-type-type">See documentation.</a>',
          array('%field_name' => $field['field_name'], '%type' => $entity),
          WATCHDOG_WARNING
        );
        continue;
      }

That should be $entity_type I would guess.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brad.bulger

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

Comments & Activities

Production build 0.69.0 2024