From d0af60d6328f07881d291b839aa4e69e51b3f370 Mon Sep 17 00:00:00 2001 From: Noah Miller Date: Wed, 15 Feb 2023 17:03:40 -0500 Subject: [PATCH] api4 explorer: make boolean params work in cv (short syntax) --- ang/api4Explorer/Explorer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 6fb14a55c6..ee6f2a21cd 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -798,6 +798,9 @@ code.short += ' +l ' + (params.limit || '0') + (params.offset ? ('@' + params.offset) : ''); } break; + case (typeof param === 'boolean'): + code.short += ' ' + key + '=' + (param ? 1 : 0); + break; default: code.short += ' ' + key + '=' + (typeof param === 'string' ? cliFormat(param) : cliFormat(JSON.stringify(param))); } -- 2.25.1