?
avatar andrepereiradasilva
andrepereiradasilva
16 Nov 2016

Steps to reproduce the issue

Add two content languages with no image.

Expected result

Two content languages with no image.

Actual result

SQL Error
image

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

avatar andrepereiradasilva andrepereiradasilva - open - 16 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 16 Nov 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 16 Nov 2016
Status New Confirmed
avatar brianteeman
brianteeman - comment - 16 Nov 2016

I can confirm this


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

avatar brianteeman
brianteeman - comment - 16 Nov 2016

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.

avatar mbabker
mbabker - comment - 16 Nov 2016

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

avatar brianteeman
brianteeman - comment - 16 Nov 2016

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.

avatar andrepereiradasilva
andrepereiradasilva - comment - 16 Nov 2016

Imho It can still check for the same image except when no image.

avatar brianteeman brianteeman - change - 16 Nov 2016
Category com_languages
avatar andrepereiradasilva
andrepereiradasilva - comment - 20 Nov 2016

please test #12949

avatar andrepereiradasilva andrepereiradasilva - close - 20 Nov 2016
avatar andrepereiradasilva andrepereiradasilva - change - 20 Nov 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-11-20 20:42:48
Closed_By andrepereiradasilva

Add a Comment

Login with GitHub to post a comment