Skip to content

Commit

Permalink
Fix missing filter expression support in the relation reference edito…
Browse files Browse the repository at this point in the history
…r widget
  • Loading branch information
nirvn committed Feb 1, 2025
1 parent dd59f3e commit dacceb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qml/editorwidgets/RelationReference.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ EditorWidgetBase {
orderByValue: !!config['OrderByValue']
attributeField: field
currentFormFeature: currentFeature
filterExpression: ""
filterExpression: config['FilterExpression'] ? config['FilterExpression'] : ""
allowMulti: false

// passing "" instead of undefined, so the model is cleared on adding new features
Expand All @@ -46,7 +46,7 @@ EditorWidgetBase {
rightMargin: viewButton.width + openFormButton.width + 4
}
enabled: isEnabled
useSearch: true
useSearch: false
allowAddFeature: config['AllowAddFeatures'] !== undefined && config['AllowAddFeatures'] === true
relation: _rel
}
Expand Down

0 comments on commit dacceb7

Please sign in to comment.