From fbcfd53044f489c77b7d0e6ed49d2a3c283a403e Mon Sep 17 00:00:00 2001 From: colemanw Date: Fri, 23 Jun 2023 08:10:07 -0700 Subject: [PATCH] APIv4 Explorer - Fix regression in php generation --- 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 90efb8a98e..da56492df8 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -1001,7 +1001,7 @@ // Fields marked 'localizable' in the schema should get wrapped in ts() for the php format var localizable = _.pluck(_.filter(_.findWhere(getEntity().actions, {name: $scope.action}).fields, {localizable: true}), 'name') || []; // More field names that probably should be translated - localizable = _.sets(localizable, ['label', 'title', 'description', 'text']); + localizable = _.union(localizable, ['label', 'title', 'description', 'text']); $scope.result.push(prettyPrintOne('return ' + _.escape(phpFormat(response.values, 2, 2, localizable)) + ';', 'php', 1)); break; } -- 2.25.1