removed undefined function

This commit is contained in:
Shreesh Arora
2024-08-22 15:45:40 +05:30
parent 9568b5bcfc
commit 6b8da7e2af
3 changed files with 0 additions and 3 deletions

View File

@@ -2690,7 +2690,6 @@ class AdminControllerCore extends Controller
));
foreach ($this->kpis as $key => &$kpi) {
$kpi->exclude_id_hotels[] = 3;
if (count($kpi->exclude_id_hotels)) {
if (empty($kpi->id_hotels)) {
$kpi->id_hotels = HotelBranchInformation::getProfileAccessedHotels($this->context->employee->id_profile, 1, 1);

View File

@@ -49,7 +49,6 @@ class HelperKpiCore extends Helper
{
$this->tpl = $this->createTemplate($this->base_tpl);
$this->manageHotelPremissions();
$this->tpl->assign(array(
'id' => $this->id,
'icon' => $this->icon,

View File

@@ -593,7 +593,6 @@ class AdminStatsControllerCore extends AdminStatsTabController
public function displayAjaxGetKpi()
{
ddd(Tools::getValue('id_hotels'));
$value = $this->getLatestKpiValue(Tools::getValue('kpi'), Tools::getValue('id_hotels'));
if ($value !== false) {
$array = array('value' => $value);