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:
- Edit an existing page
- Add a new image paragraph to the page
- Click on "select entities" to choose the image to display on the page
- In the "Select Entities" modal dialog on the Select Image tab, enter keyword into the Keywords filter at the top
- 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>
Comment | File | Size | Author |
---|---|---|---|
#2 | 2. Upload tab selected (wrong).png | 103.86 KB | bevan.souster |
#2 | 1. Filter Select Entities.png | 916.2 KB | bevan.souster |
Comments
Comment #2
bevan.souster CreditAttribution: bevan.souster commentedComment #3
rikki_iki CreditAttribution: rikki_iki at PreviousNext commentedIs 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.