Bug #89442
closed[BREAKING] Error "Column 'sys_language_uid' in where clause is ambiguous" when trying to translate CEs as non-admin user
100%
Description
Hi,
it seems like the recently released version 9.5.10 introduced a breaking issue that prevents non-admin users from translating content elements from the default language to another language.
On step 2 of 4 of the Translation Wizard Modal (which is supposed to list the content elements to select for translating) the ajax call exits with an "Internal Server Error" stating the following:
An exception occurred while executing 'SELECT `tt_content_orig`.`sys_language_uid` FROM `tt_content` INNER JOIN `tt_content` `tt_content_orig` ON `tt_content`.`l10n_source` = `tt_content_orig`.`uid` WHERE (`tt_content`.`pid` = ?) AND (`tt_content`.`sys_language_uid` = ?) AND (`sys_language_uid` IN (?, ?, ?, ?, ?, ?)) AND (((`tt_content`.`deleted` = 0) AND (`tt_content_orig`.`deleted` = 0)) AND (((`tt_content`.`t3ver_wsid` = 0) OR (`tt_content`.`t3ver_state` <= 0)) AND ((`tt_content_orig`.`t3ver_wsid` = 0) OR (`tt_content_orig`.`t3ver_state` <= 0)))) GROUP BY `tt_content_orig`.`sys_language_uid`' with params [967, 3, -1, 0, 1, 2, 3, 4]: Column 'sys_language_uid' in where clause is ambiguous
Seems like the query part (`sys_language_uid` IN (?, ?, ?, ?, ?, ?))
is causing the issue as it's missing the table statement such as (`tt_content`.`sys_language_uid` IN (?, ?, ?, ?, ?, ?))
(`tt_content_orig`.`sys_language_uid` IN (?, ?, ?, ?, ?, ?))
.
Going back to 9.5.9 "fixes" the issue.
Anyone else having this issue?