File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,10 @@ func (Action) UpdateVariable(ctx *context.APIContext) {
414
414
if opt .Name == "" {
415
415
opt .Name = ctx .PathParam ("variablename" )
416
416
}
417
+
418
+ v .Name = opt .Name
419
+ v .Data = opt .Value
420
+
417
421
if _ , err := actions_service .UpdateVariable (ctx , v ); err != nil {
418
422
if errors .Is (err , util .ErrInvalidArgument ) {
419
423
ctx .Error (http .StatusBadRequest , "UpdateVariable" , err )
Original file line number Diff line number Diff line change @@ -212,6 +212,10 @@ func UpdateVariable(ctx *context.APIContext) {
212
212
if opt .Name == "" {
213
213
opt .Name = ctx .PathParam ("variablename" )
214
214
}
215
+
216
+ v .Name = opt .Name
217
+ v .Data = opt .Value
218
+
215
219
if _ , err := actions_service .UpdateVariable (ctx , v ); err != nil {
216
220
if errors .Is (err , util .ErrInvalidArgument ) {
217
221
ctx .Error (http .StatusBadRequest , "UpdateVariable" , err )
You can’t perform that action at this time.
0 commit comments