From d5f38b4a3cb7bd6a86cc1c4f822a033b2c32fe46 Mon Sep 17 00:00:00 2001 From: Mauro Bartolomeoli Date: Wed, 16 Nov 2016 17:51:15 +0100 Subject: [PATCH] Fixes #1268: WNS catalog fails to add layer with only one SRS supported --- web/client/utils/CatalogUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/utils/CatalogUtils.js b/web/client/utils/CatalogUtils.js index d70536ead7..3d083b44e3 100644 --- a/web/client/utils/CatalogUtils.js +++ b/web/client/utils/CatalogUtils.js @@ -140,7 +140,7 @@ const converters = { references: [{ type: "OGC:WMS", url: options.url, - SRS: record.SRS || [], + SRS: (record.SRS && (isArray(record.SRS) ? record.SRS : [record.SRS])) || [], params: { name: record.Name }