Fix id of datatable

This commit is contained in:
acognet
2021-04-21 09:17:09 +02:00
parent 93a1f027cb
commit 0f4c325aab

View File

@@ -1,20 +1,7 @@
<?php
/**
* Copyright (C) 2013-2021 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
/*
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
use Combodo\iTop\Application\TwigBase\Twig\TwigHelper;
@@ -314,7 +301,9 @@ class WebPage implements Page
public function GetTableBlock($aColumns, $aData)
{
return DataTableUIBlockFactory::MakeForForm(uniqid('form_', true), $aColumns, $aData);
$sId = Utils::Sanitize(uniqid('form_', true), '', Utils::ENUM_SANITIZATION_FILTER_VARIABLE_NAME);
return DataTableUIBlockFactory::MakeForForm($sId, $aColumns, $aData);
}
/**