-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Multilingual associations doesnt save language #14562
Comments
Note it says default language which is odd as this isnt actually something you can select anywhere else as the language for anything???? |
@infograf768 this seems like a pretty big bug. Adding a release blocker here |
Testing now |
I can't reproduce. Default Language is English en-GB. @wilsonge |
I see why Brian got that: he did not save the new target, just used Close. |
Yes that is what I said in the report. Note that my report also stated that you get the message that the reference article has been saved. you can see in your own movie above that after clicking on copy reference to target you get a message that the article has been saved. and it has been saved but with the non-existant language "default" - you can see this if you go to the article manager and view a list of all the articles. |
Yes, I did confirm that. The Target has to be Saved with "Save Target" before. As for the Reference article, when we use "Copy Reference to Target", it pre-save it with the new association. That is normal and will work fine if the Target is saved before Closing. Closing as you did does not create an association and the new article is saved with no tagged language, therefore its language is displayed as Default by this code in /layouts/joomla/content/language.php
Now what can we do about it? |
I guess we should look at the controller |
Why wouldn't the correct behaviour be to save it with the selected language in the first place. The item language was selected already on the process - you can't copy reference to target until you have selected a language. |
Why do you think we have a Save Target for? |
hmm, it may be in the js file... @dgt41 @Fedik |
We have a save target for subsequent changes after the creation and saving of the initial item. |
one has to understand that when using copy reference, it copies everything except the language. title, alias, category are the usual main ones. we therefore have tp prevent closing when the language is empty or display an alert. |
While i disagree with this approach you still should not be setting the language to the non existent string 'default' |
i am not setting anything voluntarily. it comes from the way the feature is used. i am sure we will find a way for people who close instead of saving. patience. |
the copy reference is something like as "set to work in progress " |
It seems something with component logic in general. It create a new article when push "copy reference", but do not add "association" between "reference article" and "target". In result it can produce 1000 "un-associated" articles, with strange new language "default" 😄 |
if you push the copy reference button then the target language should be already setted |
The issue is that I have a patch implementing an alert reminding user to use the "Save Target" before confirming Closing. It would give this: What do you think? |
@infograf768 but even with the alert, the "draft" article will remain after user push "ok" in the alert |
Not if one uses |
I.e. one should cancel the alert, then Save Target, then can click OK. |
@Fedik to Copy reference, we use
|
hm tricky, I have no better idea currently |
will make pr |
Set to "closed" on behalf of @infograf768 by The JTracker Application at issues.joomla.org/joomla-cms/14562 |
Closed as we have a PR This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14562. |
Steps to reproduce the issue
Using Multilingual Associations select an article and a target language
Select Copy reference to target in the toolbar
Message on screen that the new article has been saved
Close and return to the article manager
Expected result
A duplicate article has been created but in the selected target language
Actual result
An unpublished article (see #14561) has been created but instead of it being in the target language you selected it is in the default language
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: