Skip to content

Commit

Permalink
fixing alias expression
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jan 14, 2025
1 parent 36bc8ce commit 43e4a6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/attributes/attributecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ void AttributeController::flatten(
QgsProperty nameProperty = fieldProperties.property( QgsEditFormConfig::DataDefinedProperty::Alias );
QgsExpression nameExpression; // empty if users set to hide the field label

if ( !editorField->showLabel() )
if ( editorField->showLabel() )
{
QgsExpression nameExpression = QgsExpression( nameProperty.expressionString() );
nameExpression = QgsExpression( nameProperty.expressionString() );
}

// Retrieving field editability expression
Expand All @@ -253,7 +253,6 @@ void AttributeController::flatten(

if ( !isReadOnly )
{
QgsProperty editableProperty = fieldProperties.property( QgsEditFormConfig::DataDefinedProperty::Editable );
isEditableExpression = QgsExpression( editableProperty.expressionString() );
}

Expand Down

1 comment on commit 43e4a6f

@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 25.1.698211 just submitted!

Please sign in to comment.