Fix SetActionPlan broken reference error

This commit is contained in:
DanB
2015-03-10 12:36:52 +01:00
parent 3fc4d60d3f
commit c20fb69986

View File

@@ -504,7 +504,7 @@ func (self *ApierV1) SetActionPlan(attrs AttrSetActionPlan, reply *string) error
if exists, err := self.AccountDb.HasData(engine.ACTION_PREFIX, apiAtm.ActionsId); err != nil {
return fmt.Errorf("%s:%s", utils.ERR_SERVER_ERROR, err.Error())
} else if !exists {
return fmt.Errorf("%s:%s", utils.ERR_BROKEN_REFERENCE, err.Error())
return fmt.Errorf("%s:%s", utils.ERR_BROKEN_REFERENCE, apiAtm)
}
timing := new(engine.RITiming)
timing.Years.Parse(apiAtm.Years, ";")