Skip to content

Commit

Permalink
Pour le select prenez pas la bonne valeur pour faire la comparaison d…
Browse files Browse the repository at this point in the history
…onc il faut prendre la 2éme valeur
  • Loading branch information
shun84 committed Jun 3, 2024
1 parent 97c322c commit ff6f05f
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[0]) {
if ($cmdValue->execCmd() == $coupleArray[1]) {
$listOption .= '<option value="' . $coupleArray[0] . '" selected>' . $coupleArray[1] . '</option>';
$foundSelect = true;
} else {
Expand Down

0 comments on commit ff6f05f

Please sign in to comment.