Skip to content

Conversation

@Rom1-B
Copy link
Contributor

@Rom1-B Rom1-B commented Jun 30, 2023

The tree is not displayed, generating an error in SQL logs:

glpisqllog.ERROR: DBmysql::query() in /home/ubuntu/Dev/GLPI/10.0-bugfixes/src/DBmysql.php line 379
  *** MySQL query error:
  SQL: SELECT * FROM `glpi_locations` WHERE `level` = '1' AND `locations_id` = '0' AND () ORDER BY `completename` ASC
  Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY `completename` ASC' at line 1
  Backtrace :
  src/DBmysqlIterator.php:112                        
  src/DBmysql.php:1078                               DBmysqlIterator->execute()
  plugins/treeview/inc/config.class.php:356          DBmysql->request()
  plugins/treeview/inc/config.class.php:276          PluginTreeviewConfig->getNodesFromDb()
  plugins/treeview/left.php:58                       PluginTreeviewConfig->buildTreeview()

This is not systematic; I was able to reproduce it only once on 1st use.

@cedric-anne cedric-anne added this to the 1.10.2 milestone Jun 30, 2023
@cedric-anne cedric-anne requested a review from stonebuzz June 30, 2023 14:11
@cedric-anne cedric-anne merged commit 46b494d into pluginsGLPI:develop Jul 7, 2023
@Rom1-B Rom1-B deleted the support_28608 branch July 17, 2023 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants