From ff6f05fc9633e6112f930d28fa0b3df58219e578 Mon Sep 17 00:00:00 2001 From: shun84 Date: Mon, 3 Jun 2024 19:38:13 +0200 Subject: [PATCH] =?UTF-8?q?Pour=20le=20select=20prenez=20pas=20la=20bonne?= =?UTF-8?q?=20valeur=20pour=20faire=20la=20comparaison=20donc=20il=20faut?= =?UTF-8?q?=20prendre=20la=202=C3=A9me=20valeur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/cmd.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/cmd.class.php b/core/class/cmd.class.php index f2e983a3a8..2a382fc185 100644 --- a/core/class/cmd.class.php +++ b/core/class/cmd.class.php @@ -1658,7 +1658,7 @@ public function toHtml($_version = 'dashboard', $_options = '') { $coupleArray = explode('|', $element); $cmdValue = $this->getCmdValue(); if (is_object($cmdValue) && $cmdValue->getType() == 'info') { - if ($cmdValue->execCmd() == $coupleArray[0]) { + if ($cmdValue->execCmd() == $coupleArray[1]) { $listOption .= ''; $foundSelect = true; } else {