From 2ef4226145eeb4d8fa1d07f5ba0117f4811a18f0 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 21 Apr 2015 14:23:41 +0300 Subject: [PATCH] only remove one account from actionplan (per API call) --- engine/action_timing.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/action_timing.go b/engine/action_timing.go index f7f9c21a7..ea9970798 100644 --- a/engine/action_timing.go +++ b/engine/action_timing.go @@ -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 } } }