Fixed: The first mailbox or lync plan is set as default

Error message was missing when deleting an already allocated mailboxplan
This commit is contained in:
robvde 2012-07-18 20:17:50 +04:00
parent 93c14b77e9
commit 814bf5e35d
3 changed files with 160 additions and 0 deletions

View file

@ -44770,6 +44770,11 @@ CREATE PROCEDURE [dbo].[AddExchangeMailboxPlan]
)
AS
IF ((SELECT Count(*) FROM ExchangeMailboxPlans WHERE ItemId = @ItemID) = 0)
BEGIN
SET @IsDefault = 1
END
INSERT INTO ExchangeMailboxPlans
(
ItemID,
@ -45038,6 +45043,12 @@ CREATE PROCEDURE [dbo].[AddLyncUserPlan]
)
AS
IF ((SELECT Count(*) FROM LyncUserPlans WHERE ItemId = @ItemID) = 0)
BEGIN
SET @IsDefault = 1
END
INSERT INTO LyncUserPlans
(
ItemID,