You are not logged in.
It affects all dropdowns with translations if they have 2+ items and are being viewed in translation language.
Any solution yet (0.90.1)?
Last edited by noximuz (2016-03-10 21:53:28)
Glpi 9.2.2
Offline
OK, I'll try to dig the code. Hope to get back soon with a solution.
Glpi 9.2.2
Offline
It seams that the issue has something to do with GROUP_CONCAT...
Glpi 9.2.2
Offline
If comment out the code in condition at inc/search.class.php:2483 names become visible (without translations).
But at least the list is visible and functional, no breaking view. It just a workaround, devs needs to review that code part.
Last edited by noximuz (2016-03-11 13:01:17)
Glpi 9.2.2
Offline
Looks like a GROUP BY is missing in SQL for certain entities what prevents GROUP_CONCAT to work correctly...
Glpi 9.2.2
Offline
This problem is solved in 0.90.2
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
This problem is solved in 0.90.2
Thanks! Glad to hear it.
Can you provide more info or a relevant commit on github?
Glpi 9.2.2
Offline
yllen wrote:This problem is solved in 0.90.2
Thanks! Glad to hear it.
Can you provide more info or a relevant commit on github?
Just upgraded to GLPI 0.90.2. The problem is stil there.
Glpi 9.2.2
Offline
Have you errors in glpi logs? in debug mode?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Have you errors in glpi logs? in debug mode?
Have not seen any errors in logs. How to enable debug mode?
At the moment we use this patch as a workaround:
diff --git a/inc/search.class.php b/inc/search.class.php
index 016d25e..d850707 100644
--- a/inc/search.class.php
+++ b/inc/search.class.php
@@ -649,7 +649,9 @@ class Search {
// Meta Search / Search All / Count tickets
if ((count($data['search']['metacriteria']))
|| !empty($HAVING)
- || $data['search']['all_search']) {
+ || $data['search']['all_search']
+/* added groupby detection to prevent list with translation distortion in dropdowns */
+ || strpos($SELECT, 'GROUP_CONCAT') !== false) {
$GROUPBY = " GROUP BY `$itemtable`.`id`";
}
Glpi 9.2.2
Offline
Just upgraded to GLPI 0.90.5. The problem is stil there.
Glpi 9.2.2
Offline
Its quite simple to reproduce the problem:
1. Log in to GLPI
2. Set profile language to e.g. Russian
3. Go to Menu -> Settings -> Dropdowns -> Statuses (or any other)
4. Create two+ new statuses with Russian translations.
5. Go to Menu -> Settings -> Dropdowns -> Statuses
You'll notice the list of Statuses is displayed incorrectly if Russian language is used in the user profile (disaplayed at top right).
If change language to default GLPI language (English) everything is displayed correctly.
No errors in PHP or SQL logs, just a lot of PHP notices about undefined indexes.
Thanks.
Glpi 9.2.2
Offline
List of statuses are never translated (because not used by all user but only super-admin)
Only statuses in an item is display in the user language.
https://github.com/glpi-project/glpi/issues/953
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Hi everyone. I've just upgraded up to 9.1.1.
As far as I can see the issue is still there... but in a slight different form.
As soon as I add a translation to any Dropdown item in e.g. RU being viewed the GLPI in RU, it disappears from the list.
Yet, it can be still viewed in EN... only, very wired thing.
Glpi 9.2.2
Offline
*** MySQL query error:
SQL: SELECT \'noximuz\' AS currentuser,
`glpi_softwarelicensetypes`.`name` AS `ITEM_0`,
`glpi_softwarelicensetypes`.`id` AS `ITEM_0_id`,
GROUP_CONCAT(DISTINCT CONCAT(IFNULL(IFNULL(`glpi_softwarelicensetypes_trans`.`value`,\'__NULL__\') , \'__NULL__\'),
\'$#$\',`glpi_softwarelicensetypes`.`id`)
SEPARATOR \'$$##$$\')
AS `ITEM_0_trans`,.
`glpi_softwarelicensetypes`.`id` AS id FROM `glpi_softwarelicensetypes` ORDER BY ITEM_0 ASC LIMIT 0, 15
Error: Unknown column 'glpi_softwarelicensetypes_trans.value' in 'field list'
Backtrace :
inc/search.class.php:921...........................
inc/search.class.php:97 Search::constructDatas()
inc/search.class.php:80 Search::showList()
front/dropdown.common.php:52 Search::show()
front/softwarelicensetype.php:41 include()
Glpi 9.2.2
Offline
Just tested on 9.1.2, the issue has been finally fixed!
Thanks!
Glpi 9.2.2
Offline