Skip to content

Commit

Permalink
Update apply-on-update-default-values on AddFeature (pressing OK) to …
Browse files Browse the repository at this point in the history
…ensure hidden fields are updated as well. This fixes #57411
  • Loading branch information
signedav committed May 22, 2024
1 parent 2f2ceed commit 29ab97b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/vector/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,11 @@ bool QgsVectorLayer::addFeature( QgsFeature &feature, Flags )
success = mJoinBuffer->addFeature( feature );
}

if ( success && !mDefaultValueOnUpdateFields.isEmpty() )
{
updateDefaultValues( feature.id() );
}

return success;
}

Expand Down

0 comments on commit 29ab97b

Please sign in to comment.