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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

a.dmitriiev created an issue. See original summary.

  • a.dmitriiev committed b681d73b on 1.x
    Issue #3402105 by a.dmitriiev: Layout selector for non English language
    
a.dmitriiev’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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