From 397ab3e2ca1d04cc14bd862d06dec45fcb9f85b3 Mon Sep 17 00:00:00 2001 From: kzantow Date: Tue, 29 Mar 2016 12:11:21 -0400 Subject: [PATCH] JENKINS-33828 - setup wizard was modifying the recommended plugin list due to not returning a copy --- war/src/main/js/api/pluginManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/war/src/main/js/api/pluginManager.js b/war/src/main/js/api/pluginManager.js index bbe2fccb77..e81623dec4 100644 --- a/war/src/main/js/api/pluginManager.js +++ b/war/src/main/js/api/pluginManager.js @@ -46,7 +46,7 @@ exports.pluginNames = function() { * @returns The subset of plugins (subset of the plugin list) that are recommended by default. */ exports.recommendedPluginNames = function() { - return plugins.recommendedPlugins; + return plugins.recommendedPlugins.slice(); // copy this }; /**