Skip to content

Commit

Permalink
Revert "Pour le select prenez pas la bonne valeur pour faire la compa…
Browse files Browse the repository at this point in the history
…raison donc il faut prendre la 2éme valeur"

This reverts commit fdf89e8.
  • Loading branch information
shun84 committed Jun 3, 2024
1 parent d141226 commit 97c322c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/cmd.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[1]) {
if ($cmdValue->execCmd() == $coupleArray[0]) {
$listOption .= '<option value="' . $coupleArray[0] . '" selected>' . $coupleArray[1] . '</option>';
$foundSelect = true;
} else {
Expand Down

0 comments on commit 97c322c

Please sign in to comment.