diff --git a/apps/common/main/lib/controller/Plugins.js b/apps/common/main/lib/controller/Plugins.js index 222e18c3d..8a2ea25e9 100644 --- a/apps/common/main/lib/controller/Plugins.js +++ b/apps/common/main/lib/controller/Plugins.js @@ -193,8 +193,8 @@ define([ this.api.asc_pluginRun(record.get('guid'), 0, ''); }, - onPluginShow: function(plugin) { - var variation = plugin.get_Variations()[0]; + onPluginShow: function(plugin, variationIndex) { + var variation = plugin.get_Variations()[variationIndex]; if (!variation.get_Visual()) return; if (variation.get_InsideMode()) {