From eb9e0d9c19103e3e4c17f7f8465465fcfdfa4751 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Fri, 25 Oct 2024 16:43:32 +0200 Subject: [PATCH] fix: rimozione widget nei moduli --- src/HTMLBuilder/Manager/WidgetManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HTMLBuilder/Manager/WidgetManager.php b/src/HTMLBuilder/Manager/WidgetManager.php index 690ec063c..383a0cb55 100755 --- a/src/HTMLBuilder/Manager/WidgetManager.php +++ b/src/HTMLBuilder/Manager/WidgetManager.php @@ -45,7 +45,7 @@ class WidgetManager implements ManagerInterface $database = database(); // Widget richiesto - $widget = $database->fetchArray('SELECT * FROM `zz_widgets` LEFT JOIN `zz_widgets_lang` ON (`zz_widgets`.`id` = `zz_widgets_lang`.`id_record` AND `zz_widgets_lang`.`id_lang` = '.prepare(\Models\Locale::getDefault()->id).') WHERE `zz_widgets`.`id` = '.prepare($options['id']))[0]; + $widget = $database->fetchArray('SELECT `zz_widgets`.*, `zz_widgets_lang`.`text` FROM `zz_widgets` LEFT JOIN `zz_widgets_lang` ON (`zz_widgets`.`id` = `zz_widgets_lang`.`id_record` AND `zz_widgets_lang`.`id_lang` = '.prepare(\Models\Locale::getDefault()->id).') WHERE `zz_widgets`.`id` = '.prepare($options['id']))[0]; $result = ' ';