Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding association to an item doe not add the association to the already associated items #21250

Closed
infograf768 opened this issue Jul 25, 2018 · 13 comments

Comments

@infograf768
Copy link
Member

infograf768 commented Jul 25, 2018

Steps to reproduce the issue

Create multilingual site with 3 languages.

Create for example 1 article (or anything else) in 2 of the Content Languages and associate them.

Then create another article tagged to the 3rd Content Language. Save (NOT Save and Close).

Switch to the Associations tab and Select Association for only one of the Content Languages.

Example with contacts:

assoc_3

Expected result

The Article should be associated to the already associated articles.

Actual result

It is not and the result is that the formerly associated articles are not associated anymore without any Alert.

@infograf768
Copy link
Member Author

Note: the problem does not exist when using the multilingual associations component to create or associate an item to another which already has associations for other languages.

@infograf768
Copy link
Member Author

Note2: the problem is not recent. It also existed for menu items associations in 2.5

@ghost
Copy link

ghost commented Jul 25, 2018

can't test Issue because of #21238

@infograf768
Copy link
Member Author

@franz-wohlkoenig
please use https://github.com/joomla/joomla-cms/archive/4.0-dev.zip

@ghost
Copy link

ghost commented Jul 25, 2018

i'm on cloudaccess (nightly) so i can't.

@infograf768
Copy link
Member Author

Imho we just need an Alert in case there is already associated items for the item added in the association field.

@Bakual
Copy link
Contributor

Bakual commented Jul 25, 2018

Personally speaking, this is expected behavior. Since I tell in the item A to only associate it with the specified other item B and the remaining languages are left empty. I don't expect it to magically fill up with the item C and D originally associated to that other item B.

If it would not behave like this, how would you ever take off an item from an association group? It would always automatically fill up again.

@brianteeman
Copy link
Contributor

I do not agree with your assessment of expected behaviour and as Thomas rightly points out it could never work either. And as you point out it has been this way since 2.5 so I guess no one else sees it as expected behaviour or they would have said something by now.

@infograf768
Copy link
Member Author

I have received many surprised comments by French users about that (and some very recently) as it is damned easy to kill existing associations by forgetting an item is already associated.
The fact that it is working such since 2.5 does not mean it is good. We happily corrected a lot of stuff since 2.5 and this is NOT an argument.

As I suggested, we may need a trick to at least inform the user he may kill existing associations before save, or a specific Ajax call through a button that would automatically fill all the fields with the existing associations if desired. The second one is out of my abilities.

@brianteeman
Copy link
Contributor

A warning should only be displayed when there are existing associations that will be removed. A warning should not be displayed on the possibility that an association may be removed.

@infograf768
Copy link
Member Author

Closing as we have an Ajax solution #21321

@kahisfz
Copy link

kahisfz commented May 25, 2020

Hi,
I have a strange issue in Joomla 3.9.18, the language switch is working fine till the menu items, but articles are not being translated, the articles are perfectly associated. I am wondering what can cause this issue? any help is appreciated.
thanks

@brianteeman
Copy link
Contributor

@kahisfz Please use the forum for support https://forum.joomla.org and please provide more information when you post on the forum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants