From fba735a2839bcdc2331fdc55cedd401ad9dce32b Mon Sep 17 00:00:00 2001 From: colemanw Date: Wed, 24 May 2023 11:43:07 -0400 Subject: [PATCH] APIv4 Explorer - Don't translate empty strings --- ang/api4Explorer/Explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 4cc2fadb04..894de01ef3 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -1024,7 +1024,7 @@ return '[]'; } $.each(val, function(k, v) { - var ts = localizable && localizable.includes(k) && _.isString(v) ? 'E::ts(' : ''; + var ts = localizable && localizable.includes(k) && _.isString(v) && v.length ? 'E::ts(' : ''; ret += (ret ? ', ' : '') + newLine + indent + "'" + k + "' => " + ts + phpFormat(v, indentChild, indentChildren, localizable) + (ts ? ')' : ''); }); return '[' + ret + trailingComma + newLine + baseLine + ']'; -- 2.25.1