From 4595b1ec11712d6e5ddb320a99b850ebbba0967a Mon Sep 17 00:00:00 2001
From: fbsanchez <fborja.sanchez@artica.es>
Date: Wed, 11 Aug 2021 14:02:56 +0200
Subject: [PATCH 1/2] Retro-compability

---
 .../lib/Dashboard/Widgets/agent_module.php      | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/pandora_console/include/lib/Dashboard/Widgets/agent_module.php b/pandora_console/include/lib/Dashboard/Widgets/agent_module.php
index a0a33734ae..bc8d1b49c7 100644
--- a/pandora_console/include/lib/Dashboard/Widgets/agent_module.php
+++ b/pandora_console/include/lib/Dashboard/Widgets/agent_module.php
@@ -413,7 +413,7 @@ class AgentModuleWidget extends Widget
         array $visualData,
         array $allModules
     ):string {
-        $style = 'display:flex; width:100%; height:100%; margin: 10px;';
+        $style = 'display:flex; width:100%; margin: 10px;';
         $table_data = '<div style="'.$style.'">';
         $table_data .= '<table class="widget_agent_module transparent mrgn_0px" cellpadding="1" cellspacing="0" border="0">';
 
@@ -645,9 +645,18 @@ class AgentModuleWidget extends Widget
 
             $all_modules = $target_modules;
         } else {
-            $all_modules = Module::search(
-                ['id_agente_modulo' => $target_modules]
-            );
+            if (is_array($target_modules) === true
+                || is_numeric($target_modules) === true
+            ) {
+                $all_modules = Module::search(
+                    ['id_agente_modulo' => $target_modules]
+                );
+            } else {
+                // From previous definitions.
+                $all_modules = Module::search(
+                    ['id_agente_modulo' => explode(',', $target_modules)]
+                );
+            }
         }
 
         if ($all_modules !== null) {

From 3afeb476760638dca9154722e72adc5ccfee49c7 Mon Sep 17 00:00:00 2001
From: fbsanchez <fborja.sanchez@artica.es>
Date: Wed, 11 Aug 2021 14:09:18 +0200
Subject: [PATCH 2/2] Width-height auto for images in tables - agent_module
 widget improvement

---
 pandora_console/include/styles/pandora.css | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index 25c6340d64..2639d010a8 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -285,6 +285,8 @@ input[type="image"] {
 table,
 img {
   border: 0px;
+  width: auto;
+  height: auto;
 }
 
 table pre {