Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A temporary fix until #2991660: Views should respect the field formatter's isApplicable() method gets fixed.
Comment | File | Size | Author |
---|---|---|---|
#8 | commerce-3088905-calculated_field_views-8.patch | 1.49 KB | czigor |
| |||
#2 | commerce-3088905-calculated_field_views-2.patch | 1.77 KB | czigor |
|
Comments
Comment #2
czigor CreditAttribution: czigor at Centarro commentedComment #4
bojanz CreditAttribution: bojanz at Centarro commentedTweaked and committed. Thanks!
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedReopening based on the report at #3091639: Calculated Price check breaking views fields. Looks like $field_definition is sometimes NULL.
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedCrediting Gode.Agarunov for the bug report:
Comment #8
czigor CreditAttribution: czigor at Centarro commentedComment #9
bojanz CreditAttribution: bojanz at Centarro commentedPushed a followup. For some reason $handler->options['entity_type'] isn't always set. This would cause problems as soon as field definitions were retrieved.
Reproduced the error on the product admin view, manually tested to ensure it now works (and that the original fix is still active where needed).