Skip to content

Commit 3df5a5f

Browse files
authored
Merge pull request #248 from mendixlabs/misc
fix: make workflow mutator property lookup case-insensitive; fix REST…
2 parents c6a8928 + 5768ff5 commit 3df5a5f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

mdl/backend/mpr/workflow_mutator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (b *MprBackend) openWorkflowForMutation(unitID model.ID) (backend.WorkflowM
5555
// ---------------------------------------------------------------------------
5656

5757
func (m *mprWorkflowMutator) SetProperty(prop string, value string) error {
58-
switch prop {
58+
switch strings.ToLower(prop) {
5959
case "display":
6060
wfName := dGetDoc(m.rawData, "WorkflowName")
6161
if wfName == nil {
@@ -158,7 +158,7 @@ func (m *mprWorkflowMutator) SetActivityProperty(activityRef string, atPos int,
158158
return err
159159
}
160160

161-
switch prop {
161+
switch strings.ToLower(prop) {
162162
case "page":
163163
taskPage := dGetDoc(actDoc, "TaskPage")
164164
if taskPage != nil {

mdl/visitor/visitor_rest_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestCreateRestClient_Basic(t *testing.T) {
4545
if op.Name != "GetPets" {
4646
t.Errorf("Got Name %q", op.Name)
4747
}
48-
if op.Method != "GET" {
48+
if op.Method != "get" {
4949
t.Errorf("Got Method %q", op.Method)
5050
}
5151
}

0 commit comments

Comments
 (0)