Closed (fixed)
Project:
Redirect
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2019 at 08:06 UTC
Updated:
27 Dec 2019 at 13:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
arpad.rozsa commentedComment #3
berdirThis will in turn fail on 8.7, which we still support.
As the change is pretty simple, lets add a check for if (version_compare(\Drupal::VERSION, '8.8', '>=')) { or so, so it works on both versions.
You could define a $field_suffix = '[0][value]'; variable that you conditionally set to empty or that and append it to those 3 fields.
Comment #4
arpad.rozsa commentedAdded the version check.
Comment #5
berdirThanks.