Optional QgsProcessingParameterExpression defaults to field if input has one field #41063
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Describe the bug
A processing algorithm that uses an optional
QgsProcessingParameterExpression
defaults its value to input field if the input layer has one field only, instead of being left blank like when there are more fields or no fields.How to Reproduce
Open a point layer that has a single field and load the c++ points to path algorithm. Both order expression and group expression defaults to the single field instead of being blank.
QGIS and OS versions
Master on debian testing
The text was updated successfully, but these errors were encountered: