Bug report #11694

Cannot select second layer when Join attributes table is used in Modeler

Added by Anita Graser about 10 years ago. Updated about 10 years ago.

Status:Closed
Priority:High
Assignee:Victor Olaya
Category:Processing/QGIS
Affected QGIS version:2.6.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19938

Description

As you can see in the screenshot, the input field for the second layer does not provide the necessary dropdown list with available layers to chose from:

join.png (14.1 KB) Anita Graser, 2014-11-19 02:03 PM


Related issues

Related to QGIS Application - Bug report #11666: Processing graphical modeler can't open previously saved ... Rejected 2014-11-17

Associated revisions

Revision 810cb3fb
Added by Victor Olaya about 10 years ago

[processing] fixed handling of tables in models

Fixes #11694

History

#1 Updated by Anita Graser about 10 years ago

#2 Updated by Anita Graser about 10 years ago

  • Subject changed from Cannot select second layer when Join attributes tables is used in Modeler to Cannot select second layer when Join attributes table is used in Modeler

#3 Updated by Anita Graser about 10 years ago

Changing line 52 in JoinAttributes.py seems to fix it:

        self.addParameter(ParameterVector(self.INPUT_LAYER_2, 'Input layer 2',
                          [ParameterVector.VECTOR_TYPE_ANY], False))

#4 Updated by Giovanni Manghi about 10 years ago

Anita Graser wrote:

Changing line 52 in JoinAttributes.py seems to fix it:

[...]

better propose a PR with a patch then, cheers!

#5 Updated by Anita Graser about 10 years ago

It would basically revert https://github.com/qgis/QGIS/pull/1498/files

Seems like the underlying issue is that ParameterTable does not equal ParameterVector + tabular data?

I would really like the main developers to shed some light on this issue.

#6 Updated by Victor Olaya about 10 years ago

Fixed

#7 Updated by Victor Olaya about 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF