mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
ApierV2.SetAccount - force reload of actionPlans, fixes #847
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user