Skip to content
Permalink
Browse files

Joined features are created on changeAttributeValue when upsertOnEdit…

… is activated
  • Loading branch information
pblottiere committed Aug 21, 2017
1 parent 94d7e75 commit 3ba138bff99ed58749b2218e74356e7995363067
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsvectorlayer.cpp
@@ -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;

0 comments on commit 3ba138b

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