In Refactor Fields algorithm, field for "Source Expression" are loaded from the wrong layer when "selected features only" option is checked #62019
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
What is the bug or the crash?
When using Refactor Fields algorithm on a layer, and loading fields from a second layer, the fields displayed in "Source Expression" column are the one from the second layer. It only happens when "Selected features only" is checked.
The expected behavior would be to always display fields from the input layer in "Source Expression" column.
Steps to reproduce the issue
A possible workaround is to load fields from template layer with "Selected features" unchecked and then to check again the "Selected features" option without opting to reset the field mapping when proposed in the dedicated dialog.
This issue is not critical, as the above workaround can be used. However, it may be confusing for users unfamiliar with the refactoring tool.
Versions
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: