AJAX routes: ensure to enable AJAX mode even if an error occured handling request

This commit is contained in:
Benjamin Renard 2022-02-01 21:47:50 +01:00
parent 2375f95063
commit fe1181b531

View file

@ -66,6 +66,7 @@ LSurl :: add_handler('#^ajax/keepLSsession/?$#', 'handle_ajax_keepLSsession', tr
* @retval void * @retval void
**/ **/
function handle_ajax($request) { function handle_ajax($request) {
LSsession :: setAjaxDisplay();
$data = null; $data = null;
switch ($request -> type) { switch ($request -> type) {
case 'class': case 'class':