Layout selector for non English language

Created on 16 November 2023, about 1 year ago

Problem/Motivation

Layout selector in "UI elements" tab filters layouts by category name "Search". But this string is translatable, so when the page is loaded in other language than English, there is an error:

Call to a member function getLibrary() on bool in Drupal\search_api_decoupled_ui\Form\SearchApiEndpointUiElementsForm->form() (line 75 of /var/lib/tugboat/web/modules/contrib/search_api_decoupled/modules/ui/src/Form/SearchApiEndpointUiElementsForm.php).

It happens because no layouts with category "Search" could be found, because in German it is "Suche" and in other languages it is also different.

Proposed resolution

Filter the layouts but take into account that layout category is translatable.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Admin User Interface

Created by

🇩🇪Germany a.dmitriiev

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

Comments & Activities

Production build 0.71.5 2024