ApierV2.SetAccount - force reload of actionPlans, fixes #847

This commit is contained in:
DanB
2017-12-08 15:59:21 +01:00
parent 33d95b44c6
commit 6a86b51320

View File

@@ -137,7 +137,7 @@ func (self *ApierV2) SetAccount(attr AttrSetAccount, reply *string) error {
}
}
for _, apID := range *attr.ActionPlanIDs {
if utils.IsSliceMember(acntAPids, apID) {
if utils.IsSliceMember(acntAPids, apID) && !attr.ActionPlansOverwrite {
continue // Already there
}
ap, err := self.DataManager.DataDB().GetActionPlan(apID, false, utils.NonTransactional)