Skip to content

Commit 3ba138b

Browse files
committed
Joined features are created on changeAttributeValue when upsertOnEdit is activated
1 parent 94d7e75 commit 3ba138b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/qgsvectorlayer.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,10 @@ bool QgsVectorLayer::changeAttributeValue( QgsFeatureId fid, int field, const QV
22792279
if ( joinFeature.isValid() )
22802280
return info->joinLayer()->changeAttributeValue( joinFeature.id(), srcFieldIndex, newValue, oldValue );
22812281
else
2282-
return false;
2282+
{
2283+
feature.setAttribute( field, newValue );
2284+
return addFeaturesToJoinedLayers( QgsFeatureList() << feature );
2285+
}
22832286
}
22842287
else
22852288
return false;

0 commit comments

Comments
 (0)