[com_associations] Correcting wrong Reference association in Target assoc field#25704
Conversation
|
@infograf768 It seems the minimized js is wrong: When I have Joomla debug on so unminified file is loaded, then all is ok, but when I switch debug off so the minified file is loaded, I get following JS error in the browser console:
|
This seems to work, the minified version in your PR contains still the comments and so breaks syntax.
|
@infograf768 Made PR against your repo for minified (or compressed or uglified or however it is called) js. |
|
I have tested this item 🔴 unsuccessfully on a98c1f0 See comment here: #25704 (comment) Fix is here: infograf768#51 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25704. |
Update sidebyside.js
|
@richard67 |
|
@infograf768 No, it was the heat, I am sure 😅 |
|
I have tested this item ✅ successfully on 22dda4f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25704. |
|
@franz-wohlkoenig Either cached version of minified js loaded, or patch not applied, or only partly applied.
|
|
The Screenshot is before Patch. |
|
@franz-wohlkoenig Then it is correct. You see the empty English association at the right hand side? Will be correctly filled after patch is applied and changed js is loaded. |
|
I have tested this item ✅ successfully on 22dda4f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25704. |
|
Status "Ready To Commit". |
|
Note: I see other weird stuff:
|
|
@infograf768 2. Is not an issue for me. Spanish(ES) and Catalan(ES) would be easy to distinguish for me. Harder is maybe German(AT) and German(DE) and so on, but that's the other way round. On my site I have both country and language as complete word in my content language name, and text is in the particular language, like "Deutsch (Deutschland)", "English (United Kingdom)" or "Русский (Россия)", so people find it in their language in the link title of the language switcher, that's how I like it. |
|
Concerning 2. It looks related to the install.xml from which the LanguageAdapter picks the Title This means we have to instruct TTs to pay attention to that. or modify code |
|
@infograf768 Yes and that's why it is weird, because different TT use different way, so the result is not consistent. |
|
We should force TTs to use the "Deutsch (Deutschland)", "English (United Kingdom)" or "Русский (Россия)" way for the content language names (or titles) and another standardized way for the site or admin language names shown in the backend. |
|
@richard67 |
|
Admin and site languages should always be like "de-DE", "en-GB" and so on so you can switch backend language and still understand it. For content language see above. |
Will share this in TT Coordination. I think though that the real tag is enough because of the size of the fields. Admin will have to modify as they like and as you did. |
|
I can live with that as long as it is consistent at the end ;-) |
|
@HLeithner |
|
thx |


Summary of Changes
Added data-title-value to force display the correct association for the Reference item in the Target assoc field.
Thanks @robbiejackson for the code.
Testing Instructions
Create a multilingual site from clean install, using the default multilingual proposed when installing joomla. 2 languages are enough.
Go to com_associations and select articles and en-GB.
I installed French.
Click the grey icon for FR when reference is Article (en-GB)
Before patch
The reference item is wrong

After patch
Issue corrected

Note: this is a very old bug that kept unseen.