- Edited
environment:
osTicket Version v1.12.2 (a5d898b) — Up to date
Web Server Software Apache
MySQL Version 10.4.7
OS Centos 7.x
PHP Version 7.2.21
Step to reproduce:
- added custom sorting "Manage Queue Sorting" in the previous version, and now found out
- when edit, show error ini apache log
[Mon Aug 26 15:43:06.625580 2019] [php7:error] [pid 30111] [client 117.x.x.x:33004] PHP Fatal error: Uncaught Error: Call to a member function asTable() on null in /PATH/include/staff/templates/queue-sorting.tmpl.php:1\nStack trace:\n#0 /PATH/include/staff/templates/queue-sorting-edit.tmpl.php(30): include()\n#1 /PATH/include/ajax.search.php(271): include('/var/www/suppor...')\n#2 /PATH/include/class.dispatcher.php(145): SearchAjaxAPI->editSort('12')\n#3 /PATH/include/class.dispatcher.php(38): UrlMatcher->dispatch('/sort/edit/12', Array)\n#4 /PATH/include/class.dispatcher.php(120): Dispatcher->resolve('/sort/edit/12', Array)\n#5 /PATH/include/class.dispatcher.php(38): UrlMatcher->dispatch('search/sort/edi...', Array)\n#6 /PATH/include/class.dispatcher.php(120): Dispatcher->resolve('search/sort/edi...', Array)\n#7 /PATH/include/class.dispatcher.php(38): UrlMatcher->dispatch('/tickets/search...', NULL)\n#8 /PATH/scp/ajax.php(289): Dispatcher->resolve('/tickets/search...')\n#9 {main}\n thrown in /PATH/include/staff/templates/queue-sorting.tmpl.php on line 1, referer: https://support.domain.com/scp/queues.php?id=24