JENKINS-33828 - setup wizard was modifying the recommended plugin list

due to not returning a copy
This commit is contained in:
kzantow committed 2016-03-29 12:11:21 -04:00
1 parent 6219c8f9fd
commit 397ab3e2ca
1 file changed
+1 -1
+1 -1
View File
@@ -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
};
/**