-
-
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
Cannot put two content languages with "No image" #12907
Comments
I can confirm this This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12907. |
Removing the unique index resolves it - does this even need an index? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12907. |
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/table/language.php#L71 The code requires a unique image per language. It's not just the table indexes. I never understood it but for whatever reason I got conned to adding it onto https://developer.joomla.org/joomlacode-archive/issue-27196.html |
The argument for it being unique is to prevent a user being stupid and
having two or more languages with the same image. You can't fix stupid. If
you accidentally select the same image you will quickly see you've been
stupid and change it.
|
Imho It can still check for the same image except when no image. |
please test #12949 |
Steps to reproduce the issue
Add two content languages with no image.
Expected result
Two content languages with no image.
Actual result
SQL Error
System information (as much as possible)
latest
Additional comments
there seems to be an unique index idx_image for image field in #__languages table
probably a missing part from #12051
The text was updated successfully, but these errors were encountered: