Fix missing device_id from device alert logs (#14460)

This commit is contained in:
ottorei
2022-10-17 19:15:41 +03:00
committed by GitHub
parent 8018dc709e
commit abf00ea75e

View File

@@ -147,7 +147,7 @@ $common_output[] = '<div class="form-group"> \
post: function () {
return {
id: "alertlog",
device_id: \'' . htmlspecialchars($_POST['device_id']) . '\',
device_id: \'' . htmlspecialchars($_POST['device_id'] ?? $device_id) . '\',
state: \'' . htmlspecialchars($_POST['state']) . '\',
min_severity: \'' . htmlspecialchars($_POST['min_severity']) . '\'
};