From cdb97baa80bf5f75d34d580befe42f2b999e4e47 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Mon, 30 Nov 2020 08:03:04 +0100 Subject: [PATCH] :bug: DataTableFactory : fix ajax.render URL generation Was created without approot --- .../application/UI/Component/DataTable/DataTableFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/application/UI/Component/DataTable/DataTableFactory.php b/sources/application/UI/Component/DataTable/DataTableFactory.php index 64dc54416..3df53f6e0 100644 --- a/sources/application/UI/Component/DataTable/DataTableFactory.php +++ b/sources/application/UI/Component/DataTable/DataTableFactory.php @@ -20,6 +20,7 @@ use Dict; use MenuBlock; use MetaModel; use UserRights; +use utils; use WebPage; /** @@ -330,7 +331,7 @@ class DataTableFactory $aOptions['oClassAliases'] = json_encode($aClassAliases); $oDataTable->SetOptions($aOptions); - $oDataTable->SetAjaxUrl("ajax.render.php"); + $oDataTable->SetAjaxUrl(utils::GetAbsoluteUrlAppRoot()."pages/ajax.render.php"); $oDataTable->SetAjaxData(json_encode([ "operation" => 'search', "filter" => $oSet->GetFilter()->serialize(),