J4 Issue ?
avatar infograf768
infograf768
29 Jun 2019

Steps to reproduce the issue

Create a multingual site with 4 languages
French, German (de-DE) can be installed at J clean install time or through index.php?option=com_installer&view=languages
As Persian is hard to read for most, install Italian through index.php?option=com_installer&view=install package tab
it-IT_joomla_lang_full_3.9.8v1.zip
English en-GB is present by default.

Then run the Multilingual sample data module in Control Panel.
Then, run the Blog Sample data module after switching to each language in backend.

The test here concerns Menu items but we get the same results for each component.

We have menu items of type Create Article in the Author Menu for each language.
Edit the en-GB one and through the Associations tab, create associations to the French and German ones. Save and Close.

Then edit the Italian one. In its Associations tab Select the en-GB Create a Post (en-GB).
Then use the now available Propagate button.

Expected result

The French and German associations should be added.

Actual result

Only The French one is added.

In the screenshot below I did not do anything concerning Persian which was already present in my test site. Just ignore it

Screen Shot 2019-06-29 at 09 01 43

Hint: the process is interrupted and no Message is displayed.

In Console we get this type of error

Screen Shot 2019-06-29 at 08 59 42

avatar infograf768 infograf768 - open - 29 Jun 2019
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jun 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Jun 2019
avatar infograf768 infograf768 - change - 29 Jun 2019
Labels Added: J4 Issue
avatar infograf768 infograf768 - labeled - 29 Jun 2019
avatar infograf768 infograf768 - change - 29 Jun 2019
The description was changed
avatar infograf768 infograf768 - edited - 29 Jun 2019
avatar infograf768 infograf768 - change - 29 Jun 2019
The description was changed
avatar infograf768 infograf768 - edited - 29 Jun 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Jun 2019
Status New Discussion
avatar infograf768
infograf768 - comment - 29 Jun 2019

I found where is the culprit.
In modal-fields.js the line 196
Joomla.Modal.getCurrent().close();
has replaced line 194 in modal-fields-uncompressed.js in J3
jQuery('#ModalSelect' + itemType + '_' + fieldPrefix).modal('hide');

If I use the J3 code there, the issue is solved.

No idea how to correct that when not using JQuery

avatar infograf768
infograf768 - comment - 29 Jun 2019
avatar Fedik
Fedik - comment - 29 Jun 2019

the problem that I even do not know what Propagate button for ?
something new :)

avatar dgrammatiko
dgrammatiko - comment - 29 Jun 2019

@infograf768 try to open the modal from that Propagate (wtf is this?) and then open the browser's terminal and type Joomla.Modal.getCurrent() what's the output?
Also try: window.parent.Joomla.Modal.getCurrent(), what's the output?

avatar Fedik
Fedik - comment - 29 Jun 2019

something with processModalSelect() in media-field, in some reason it tries to close non existing modal

avatar Fedik
Fedik - comment - 29 Jun 2019

@infograf768 please try to test next:
in media-field.js find window.processModalSelect = ..
there change line Joomla.Modal.getCurrent().close() to:

if (Joomla.Modal.getCurrent()) {
  Joomla.Modal.getCurrent().close();
}
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Jun 2019

the problem that I even do not know what Propagate button for ? something new :)

Multilingual: Propagating existing associations if desired #21321

avatar infograf768
infograf768 - comment - 29 Jun 2019

@Fedik will try tomorrow

avatar infograf768
infograf768 - comment - 30 Jun 2019

@Fedik
Right on spot!
Making PR now. Thanks.

avatar infograf768 infograf768 - change - 30 Jun 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-06-30 05:20:39
Closed_By infograf768
avatar infograf768 infograf768 - close - 30 Jun 2019
avatar infograf768
infograf768 - comment - 30 Jun 2019

Please test #25371

Closing as we have a patch

Add a Comment

Login with GitHub to post a comment