Skip to content

Commit

Permalink
Joined features are created on changeAttributeValue when upsertOnEdit…
Browse files Browse the repository at this point in the history
… is activated
  • Loading branch information
pblottiere committed Aug 28, 2017
1 parent 94d7e75 commit 3ba138b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -2279,7 +2279,10 @@ bool QgsVectorLayer::changeAttributeValue( QgsFeatureId fid, int field, const QV
if ( joinFeature.isValid() )
return info->joinLayer()->changeAttributeValue( joinFeature.id(), srcFieldIndex, newValue, oldValue );
else
return false;
{
feature.setAttribute( field, newValue );
return addFeaturesToJoinedLayers( QgsFeatureList() << feature );
}
}
else
return false;
Expand Down

0 comments on commit 3ba138b

Please sign in to comment.