-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[9.4] Some dropdown options broken #5059
Comments
after upgrade from 9.2.4 to 9.4 beta I also had error message for computer ( i had a personnal view on 9.2.4)
|
Please test the proposed fix from #5064. It should fix that issue in a lot of different locations. Issue seemed to be with the search options on the items and not the forms. |
tested with computer.class it seems to work. |
Describe the bug
When using certain dropdowns in search, you get the following error in place of the dropdown:
Fatal error: Uncaught TypeError: Argument 1 passed to Dropdown::addNewCondition() must be of the type array, string given, called in /var/www/html/94/inc/dropdown.class.php on line 162 and defined in /var/www/html/94/inc/dropdown.class.php:283 Stack trace: #0 /var/www/html/94/inc/dropdown.class.php(162): Dropdown::addNewCondition('is_requester') #1 /var/www/html/94/inc/commondbtm.class.php(3836): Dropdown::show('Group', Array) #2 /var/www/html/94/inc/commondbtm.class.php(4748): CommonDBTM::dropdown(Array) #3 /var/www/html/94/inc/ticket.class.php(6792): CommonDBTM->getValueToSelect(Array, 'criteria[1][val...', Array, Array) #4 /var/www/html/94/inc/search.class.php(2915): Ticket->getValueToSelect(Array, 'criteria[1][val...', '', Array) #5 /var/www/html/94/ajax/search.php(62): Search::displaySearchoptionValue(Array) #6 {main} thrown in /var/www/html/94/inc/dropdown.class.php on line 283
Page(s) URL
/front/ticket.php and other search pages
To reproduce
Steps to reproduce the behavior:
Note: Other dropdowns seem functional such as Requester and Entity.
Expected behavior
The dropdown is generated and shown.
Logs
Your GLPI setup (you can find it in Setup > General menu, System tab)
The text was updated successfully, but these errors were encountered: