fix wsp-10243 Exchange 2010 - Retention policy errors

This commit is contained in:
dev_amdtel 2014-05-29 03:38:34 +04:00
parent b820a28f85
commit 12b1a08168

View file

@ -3372,6 +3372,8 @@ namespace WebsitePanel.EnterpriseServer
ExchangeMailboxPlan policy = GetExchangeMailboxPlan(itemID, policyId); ExchangeMailboxPlan policy = GetExchangeMailboxPlan(itemID, policyId);
if (policy != null)
{
List<ExchangeMailboxPlanRetentionPolicyTag> policytaglist = GetExchangeMailboxPlanRetentionPolicyTags(policyId); List<ExchangeMailboxPlanRetentionPolicyTag> policytaglist = GetExchangeMailboxPlanRetentionPolicyTags(policyId);
List<string> tagLinks = new List<string>(); List<string> tagLinks = new List<string>();
@ -3391,6 +3393,7 @@ namespace WebsitePanel.EnterpriseServer
ResultObject res = exchange.SetRetentionPolicy(policy.WSPUniqueName, tagLinks.ToArray()); ResultObject res = exchange.SetRetentionPolicy(policy.WSPUniqueName, tagLinks.ToArray());
result.ErrorCodes.AddRange(res.ErrorCodes); result.ErrorCodes.AddRange(res.ErrorCodes);
result.IsSuccess = result.IsSuccess && res.IsSuccess; result.IsSuccess = result.IsSuccess && res.IsSuccess;
}
} }
} }