?
avatar joeforjoomla
joeforjoomla
31 Dec 2020

Steps to reproduce the issue

Use a media field in a plugin or component view such as a menu item edit page.

Expected result

No JS errors

Actual result

JS errors, the file joomla-image-select.js is looking for options 'xtdImageModal'' in the Joomla.optionsStorage["xtdImageModal"] that are part of the editor modals and xtd buttons

System information (as much as possible)

4.0 Beta 6 Dev

Additional comments

image

image

avatar joeforjoomla joeforjoomla - open - 31 Dec 2020
avatar joomla-cms-bot joomla-cms-bot - change - 31 Dec 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
The description was changed
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
The description was changed
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
The description was changed
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
The description was changed
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
The description was changed
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
The description was changed
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
The description was changed
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar joeforjoomla joeforjoomla - change - 31 Dec 2020
Title
[4.0] Media field search for editor modal causing JS error
[4.0] Media field search for editor modals causing JS error
avatar joeforjoomla joeforjoomla - edited - 31 Dec 2020
avatar infograf768
infograf768 - comment - 31 Dec 2020

Can you try the same trick as here?
https://github.com/joomla/joomla-cms/pull/31779/files

avatar joeforjoomla
joeforjoomla - comment - 31 Dec 2020

Yes @infograf768 this trick works.
Change from: if (MediaXTDElements.length) {
to: if (MediaXTDElements) {

avatar infograf768 infograf768 - change - 1 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-01 09:33:37
Closed_By infograf768
avatar infograf768 infograf768 - close - 1 Jan 2021
avatar infograf768
infograf768 - comment - 1 Jan 2021

Closing as we have a patch
#31819

please mark your test OK here https://issues.joomla.org/tracker/joomla-cms/31819

Add a Comment

Login with GitHub to post a comment