mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
aa14b59e14
commit
a59977f181
@ -204,8 +204,17 @@
|
||||
}
|
||||
|
||||
query += params[i].key;
|
||||
if (params[i].value !== null) {
|
||||
query += '=' + params[i].value;
|
||||
switch (params[i].value) {
|
||||
case true:
|
||||
break;
|
||||
case false:
|
||||
query += '=0';
|
||||
break;
|
||||
case null:
|
||||
query += '=';
|
||||
break;
|
||||
default:
|
||||
query += '=' + params[i].value;
|
||||
}
|
||||
}
|
||||
|
||||
@ -235,7 +244,7 @@
|
||||
value = segment[i].slice(equalPos + 1);
|
||||
} else {
|
||||
key = segment[i];
|
||||
value = null;
|
||||
value = true;
|
||||
}
|
||||
|
||||
params.push({ key: key, value: value });
|
||||
|
Loading…
x
Reference in New Issue
Block a user