Skip to content

[Bug] Custom Action Control variables are expanded with wrong values #1467

Closed
@goran-w

Description

@goran-w

There's an off-by-one index error when replacing the argument strings.

On line 140 cmdline.Replace($"${i}", param.GetValue()); in ViewModels.ExecuteCustomAction.Sure(), the source string should instead be $"${i+1}" (since the i index is zero-based but the variable names are one-based).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions