From 268245d920b23bdde3f551721438ea6ea1c082dd Mon Sep 17 00:00:00 2001 From: robvde Date: Mon, 30 Jul 2012 16:04:18 +0400 Subject: [PATCH] Fixed: Typo in AddExchangeMailboxPlan --- WebsitePanel/Database/update_db.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index 14da0be7..aeb27458 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -2053,6 +2053,13 @@ IF ((SELECT Count(*) FROM ExchangeMailboxPlans WHERE ItemId = @ItemID) = 0) BEGIN SET @IsDefault = 1 END +ELSE +BEGIN + IF @IsDefault = 1 + BEGIN + UPDATE ExchangeMailboxPlans SET IsDefault = 0 WHERE ItemID = @ItemID + END +END INSERT INTO ExchangeMailboxPlans (