Skip to content

Commit

Permalink
if default value on update enabled, field always not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Nov 22, 2024
1 parent d994858 commit b4a95b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/attributes/attributecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ void AttributeController::recalculateDerivedItems( bool isFormValueChange, bool
std::shared_ptr<FormItem> item = formItemsIterator.value();
QgsExpression exp = item->editableExpression();

if ( !exp.expression().isEmpty() )
if ( !exp.expression().isEmpty() && !item->field().defaultValueDefinition().applyOnUpdate() )
{
bool editable = item->isEditable();
exp.prepare( &expressionContext );
Expand Down

1 comment on commit b4a95b1

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.11.696011 just submitted!

Please sign in to comment.