Skip to content

Commit

Permalink
fix(task): adding tasktemplate variables to UpdateTask
Browse files Browse the repository at this point in the history
Related to #158

Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
  • Loading branch information
rbeuque74 committed Jul 13, 2020
1 parent b6e3a1d commit 345d017
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ func (t *Task) Update(dbp zesty.DBProvider, skipValidation, recordLastActivity b
// re-template task title in case inputs were updated
v := values.NewValues()
v.SetInput(t.Input)
v.SetVariables(tt.Variables)
t.ExportTaskInfos(v)
title, err := v.Apply(tt.TitleFormat, nil, "")
if err != nil {
Expand Down

0 comments on commit 345d017

Please sign in to comment.