?
avatar brianteeman
brianteeman
13 Dec 2019

Steps to reproduce the issue

On a multilingual site create anything and change the language from all to one of the installed languages

image

  1. On a new item this message is not relevant
  2. Is it really correct to display this every single time? It's an incredibly bad user experience to see this message all the time
avatar brianteeman brianteeman - open - 13 Dec 2019
avatar joomla-cms-bot joomla-cms-bot - change - 13 Dec 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Dec 2019
avatar infograf768
infograf768 - comment - 14 Dec 2019

It is correct to display the message when appropriate, but this is supposed to happen only when there are associations for the item and the item language is modified while editing the item.

This means that the js is not working properly.

in the non-minified association-edit.js, we have
First

          if (!existsAssociations && document.getElementById("".concat(formControl, "_associations_").concat(languageCode, "_name")).value !== '') {
            existsAssociations = true;
          } 

and further

        }); // If associations existed, send a warning to the user

        if (existsAssociations) {
          Joomla.renderMessages({
            warning: [Joomla.JText._('JGLOBAL_ASSOCIATIONS_RESET_WARNING')]
          });

@dgrammatiko @Fedik

avatar Fedik
Fedik - comment - 14 Dec 2019

JavaScript are ok, the bug comes from the association field, it have a value="Select an Article" when nothing selected,
that is wrong of course

screen 2019-12-14 12 39 12 1083x407

avatar infograf768
infograf768 - comment - 14 Dec 2019

@Fedik
I see. It happens even if the item is set to All, which means the fields are not displayed.
There must be a solution.

avatar Fedik
Fedik - comment - 14 Dec 2019

@infograf768 you were right, it a script

avatar Fedik
Fedik - comment - 14 Dec 2019

please test #27269

avatar infograf768
infograf768 - comment - 14 Dec 2019

Replied there. Will explain further tomorrow.
Please do not close this issue now.

avatar infograf768 infograf768 - change - 15 Dec 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-12-15 06:45:11
Closed_By infograf768
avatar infograf768
infograf768 - comment - 15 Dec 2019

Patch #27269 works fine.
Closing this.

avatar infograf768 infograf768 - close - 15 Dec 2019

Add a Comment

Login with GitHub to post a comment