diff --git a/lib/Entity/Module.php b/lib/Entity/Module.php index 7710adcb82..9b75b0e6e5 100644 --- a/lib/Entity/Module.php +++ b/lib/Entity/Module.php @@ -1,6 +1,6 @@ onDataLoad = trim($module->onDataLoad); } - $module->onDataError = $this->getFirstValueOrDefaultFromXmlNode($xml, 'onDataError'); - if (!empty($module->onDataError)) { - $module->onDataError = trim($module->onDataError); - } - $module->onRender = $this->getFirstValueOrDefaultFromXmlNode($xml, 'onRender'); if (!empty($module->onRender)) { $module->onRender = trim($module->onRender); diff --git a/lib/Factory/ModuleTemplateFactory.php b/lib/Factory/ModuleTemplateFactory.php index 35b6fb453e..36284cddb9 100644 --- a/lib/Factory/ModuleTemplateFactory.php +++ b/lib/Factory/ModuleTemplateFactory.php @@ -1,6 +1,6 @@ onTemplateVisible = $this->getFirstValueOrDefaultFromXmlNode($xml, 'onTemplateVisible'); $template->onElementParseData = $this->getFirstValueOrDefaultFromXmlNode($xml, 'onElementParseData'); $template->showIn = $this->getFirstValueOrDefaultFromXmlNode($xml, 'showIn') ?? 'both'; + if (!empty($template->onTemplateRender)) { $template->onTemplateRender = trim($template->onTemplateRender); } diff --git a/lib/Widget/Render/WidgetHtmlRenderer.php b/lib/Widget/Render/WidgetHtmlRenderer.php index f384475889..42d4f33039 100644 --- a/lib/Widget/Render/WidgetHtmlRenderer.php +++ b/lib/Widget/Render/WidgetHtmlRenderer.php @@ -397,7 +397,6 @@ private function render( $twig['onRender'] = []; $twig['onParseData'] = []; $twig['onDataLoad'] = []; - $twig['onDataError'] = []; $twig['onElementParseData'] = []; $twig['onTemplateRender'] = []; $twig['onTemplateVisible'] = []; @@ -522,9 +521,6 @@ private function render( if (!empty($module->onDataLoad)) { $twig['onDataLoad'][$widget->widgetId] = $module->onDataLoad; } - if (!empty($module->onDataError)) { - $twig['onDataError'][$widget->widgetId] = $module->onDataError; - } if (!empty($module->onRender)) { $twig['onRender'][$widget->widgetId] = $module->onRender; } diff --git a/modules/calendar.xml b/modules/calendar.xml index 35ddd17016..65da8d1f38 100644 --- a/modules/calendar.xml +++ b/modules/calendar.xml @@ -1,5 +1,5 @@