From 2e73fd537b3a16bd37b20d7257f59e314c7b085b Mon Sep 17 00:00:00 2001 From: ruslanht Date: Tue, 18 Dec 2012 12:04:13 +0200 Subject: [PATCH] WebPI: go to product download/install page directly by 'WPIProduct' query string parameter --- .../ServersEditWebPlatformInstaller.ascx.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditWebPlatformInstaller.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditWebPlatformInstaller.ascx.cs index 8dc2f27c..3987a1b5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditWebPlatformInstaller.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditWebPlatformInstaller.ascx.cs @@ -108,6 +108,16 @@ namespace WebsitePanel.Portal ShowProgressPanel(); } + string gotoProduct = Request.QueryString["WPIProduct"]; + if (!string.IsNullOrEmpty(gotoProduct)) + { + ArrayList wpiProductsForInstall = GetProductsToInstallList(); + wpiProductsForInstall.Add(gotoProduct); + SetProductsToInstallList(wpiProductsForInstall); + + btnInstall_Click(sender, e); + } + } }