Skip to content
Permalink
Browse files

Fix shifted joined attributes when join field is repeated (fixes #12589)

  • Loading branch information
wonder-sk committed Jun 18, 2015
1 parent 03aa1e7 commit 78708159b28bcbfa94e53f8b93f91790fa43ec02
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgsvectorlayerjoinbuffer.cpp
@@ -237,7 +237,8 @@ void QgsVectorLayerJoinBuffer::updateFields( QgsFields& fields )
continue;

//skip the join field to avoid double field names (fields often have the same name)
if ( joinFields[idx].name() != joinFieldName )
// when using subset of field, use all the selected fields
if ( hasSubset || joinFields[idx].name() != joinFieldName )
{
QgsField f = joinFields[idx];
f.setName( prefix + f.name() );

0 comments on commit 7870815

Please sign in to comment.
You can’t perform that action at this time.