Before sanitization

This commit is contained in:
mariano
2026-05-28 11:44:51 +02:00
parent 0bdd5476cb
commit 425f8cb5a4
2 changed files with 22 additions and 1 deletions
+4 -1
View File
@@ -350,7 +350,10 @@ class Server extends CommonDBTM
echo "<td>" . htmlspecialchars(__('Active')) . "</td>";
echo "<td>";
Dropdown::showYesNo('is_active', (int) ($this->fields['is_active'] ?? 1));
Dropdown::showYesNo(
'is_active',
($ID !== null && $ID > 0) ? (int) ($this->fields['is_active'] ?? 1) : 1
);
echo "</td>";
echo "</tr>";