summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2023-03-20 12:26:55 +0200
committerGitHub <noreply@github.com>2023-03-20 12:26:55 +0200
commit3f36bc8a69eb1f0e6ca42961e5a21d30f4128977 (patch)
tree384023f03fbed38afcc7c53170a4f41ca2a35e5e /web
parent6ee42875c3303ee2056c753a06c622aeb2b2dc84 (diff)
Accept all=true for alarms api v1 call (#14762)
accept all=true for alarms api v1
Diffstat (limited to 'web')
-rw-r--r--web/api/web_api_v1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c
index 92b1fb53df..f369ca1e39 100644
--- a/web/api/web_api_v1.c
+++ b/web/api/web_api_v1.c
@@ -264,8 +264,8 @@ int web_client_api_request_v1_alarms_select (char *url) {
char *value = mystrsep(&url, "&");
if (!value || !*value) continue;
- if(!strcmp(value, "all")) all = 1;
- else if(!strcmp(value, "active")) all = 0;
+ if(!strcmp(value, "all") || !strcmp(value, "all=true")) all = 1;
+ else if(!strcmp(value, "active") || !strcmp(value, "active=true")) all = 0;
}
return all;