Ajax error when trying to open media library on connected entity edit form.

Created on 2 September 2020, over 4 years ago
Updated 22 July 2024, 5 months ago

Problem/Motivation

When editing a referenced item via entity connect edit link, can not open Media Library widget for media field. Ajax error appears in console. Works fine when editing the same node directly, only happens when trying to edit the node via entity connect link.

Steps to reproduce

1. Click edit link next to referenced item.
2. Once on edit form for referenced item, try to edit a media field.
3. Click "add media" button.
4. Media Library widget will not open, this AJAX error appears in console :

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /node/61/edit?build_cache_id=entityconnect-form-1_hjjvqt2cQSKlDKN_LeKy6iMGNszCTLh3lm1zKZJes&child=1&ajax_form=1&_wrapper_format=drupal_ajax
StatusText: OK
ResponseText: Error: Call to undefined method Drupal\views\Form\ViewsExposedForm::getEntity() in Drupal\entityconnect\EntityconnectFormUtils::childFormSubmit()."
πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mikaylaflanagan

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024