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

Languages: Changing error order when reinstalling a language #15022

Merged
merged 1 commit into from Mar 31, 2017

Conversation

infograf768
Copy link
Member

@infograf768 infograf768 commented Mar 31, 2017

Summary of Changes

This changes the order of the errors when installing a language and creating a Content Language.

In 3.7.0/staging, a Content Language is automatically created (unpublished) when installing a language.
When uninstalling this language, the Content Language remains (which is correct behavior).
When the same language is installed again, the code checks for uniqueness of
sef
image (flag) used
Language Tag

The order is not important when editing Content Languages, but it is when reinstalling a language.

This PR reorders the errors

  1. Language Tag
  2. sef
  3. Image

After patch when reinstalling a language for which the Content Language already exists, one will get:

screen shot 2017-03-31 at 10 54 43

Instead of:
Unable to create a content language for Persian language: A content language already exists with this Image.

Thanks @imanickam for finding this issue.
Testers welcome.

@infograf768
Copy link
Member Author

Please, instead of "Approved" can you mark the Test as successful on issues.joomla.org ?

@timwattenberg
Copy link

I have tested this item ✅ successfully on f1b826a

Sure ;-)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15022.

@imanickam
Copy link
Contributor

imanickam commented Mar 31, 2017

I have tested this item successfully.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15022.

@imanickam
Copy link
Contributor

Tested this change successfully and also commented on Issue Tracker #15022

@infograf768
Copy link
Member Author

RTC. Thanks for Testing!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15022.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 31, 2017
@Bakual Bakual merged commit 9598c68 into joomla:staging Mar 31, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 31, 2017
@Bakual Bakual added this to the Joomla 3.7.0 milestone Mar 31, 2017
@infograf768 infograf768 deleted the change_error_order branch March 31, 2017 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants