Issue:

We have recently upgraded to Drupal 8.4.4 and are having an issue in the authoring environment when editors try to filter images/articles when adding them to a content type or paragraph. This means that the select entities modal windows are now unusable for filtering assets.

Steps to Reproduce:

In the authoring environment:

  1. Edit an existing page
  2. Add a new image paragraph to the page
  3. Click on "select entities" to choose the image to display on the page
  4. In the "Select Entities" modal dialog on the Select Image tab, enter keyword into the Keywords filter at the top
  5. Click apply and the modal dialog navigates to the Upload tab

^ Expected result: when the editor clicks apply, the images shown should be filtered by the keyword.

Proposed Resolution:

The authoring modal filters the entities correctly so an editor can select the correct image (entity).

Error:

The entity reference view that has exposed filters no longer works after the 8.4 upgrade. You try filter and it just closes the modal or takes you to a different tab and resets the view. Getting errors below in console:

Uncaught ReferenceError: type is not defined
    at Drupal.views.ajaxView.attachPagerLinkAjax (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2208)
    at HTMLAnchorElement.e (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2)
    at Function.each (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2)
    at r.fn.init.each (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2)
    at Drupal.views.ajaxView.attachPagerAjax (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2194)
    at HTMLDivElement.e (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2)
    at Function.each (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2)
    at r.fn.init.each (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2)
    at new Drupal.views.ajaxView (VM1807 js_-zdgh6qSB9xH8el3XUBq38Vc-05DxOGenwWCedUP3iY.js:2164)
    at Object.Drupal.behaviors.ViewsAjaxView.attach<code>

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cman9090 created an issue. See original summary.

bevan.souster’s picture

Title: Views filtering bug » Select Entity filtering in the authoring environment no longer working after 8.4.4 upgrade
Priority: Normal » Major
Issue summary: View changes
FileSize
916.2 KB
103.86 KB
rikki_iki’s picture

Priority: Major » Normal
Status: Active » Closed (cannot reproduce)

Is this still an issue? I couldn't reproduce it in 8.4.6

The screenshots attached don't look like the Media Entity Browser this module provides either, looks like it has been customised.