Tzfield update 8.x-1.8 fails

Created on 8 November 2023, about 1 year ago
Updated 9 November 2023, about 1 year ago

The code does not counter for base fields.

Drupal::entityTypeManager()
  ->getStorage('field_storage_config')
  ->load($entity_type_id . '.' . $field_name)
  ->setIndexes(['value' => ['value']])
  ->save();

If there is an entity type with tzfield the update produces the following error.

[error] Call to a member function setIndexes() on null

πŸ› Bug report
Status

Fixed

Version

1.8

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia Chi

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024