projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98759b2
)
APIv4 Explorer - Don't translate empty strings
author
colemanw
<coleman@civicrm.org>
Wed, 24 May 2023 15:43:07 +0000
(11:43 -0400)
committer
colemanw
<coleman@civicrm.org>
Wed, 24 May 2023 15:45:45 +0000
(11:45 -0400)
ang/api4Explorer/Explorer.js
patch
|
blob
|
blame
|
history
diff --git
a/ang/api4Explorer/Explorer.js
b/ang/api4Explorer/Explorer.js
index 4cc2fadb0448bccb65dfc14cdda19be2c9ef2358..894de01ef3580a454f85d6f1ba5328915270c23e 100644
(file)
--- 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 + ']';