only remove one account from actionplan (per API call)

This commit is contained in:
Radu Ioan Fericean
2015-04-21 14:23:41 +03:00
parent 7bab891161
commit 2ef4226145

View File

@@ -333,6 +333,8 @@ func RemActionTiming(ats ActionPlan, actionTimingId, balanceId string) ActionPla
} else {
at.AccountIds[iBlnc], at.AccountIds = at.AccountIds[len(at.AccountIds)-1], at.AccountIds[:len(at.AccountIds)-1]
}
// only remove the first one matching
break
}
}
}