When deleting a field from a content type or drush cr I have the following error

Undefined index: title in rest_views_views_data_alter() (line 20 of rest_views/rest_views.module)

In Drupal 8.5.3

Comments

gilles.koffmann created an issue. See original summary.

gilles.koffmann’s picture

Status: Active » Needs review
StatusFileSize
new807 bytes

Here is a temporary patch. It just bypasses the error since I could not identify yet the reason of the error

cburschka’s picture

As far as I'm aware, this property should normally be set; it refers to the administrative label shown in the Views UI. We can skip setting it, but that just results in two unlabeled fields...

Could you find out the ID of this title-less field and the module that provides it? And also how it shows up in the views UI?

If necessary, we might use the internal ID as a fallback value for the title.

gilles.koffmann’s picture

StatusFileSize
new34.23 KB

The error comes from the workbench_access module I think

  • cburschka committed 3a7074f on 2.0.x
    Issue #2980219 by gilles.koffmann: Undefined index: title in...
cburschka’s picture

Issue summary: View changes
Status: Needs review » Fixed

I can't identify the cause, but the fix seems safe.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.