Skip to content
Permalink
Browse files

[expressions] Fix misleading error string when fields are set but no …

…feature is available

(cherry picked from commit 014498f)
  • Loading branch information
nyalldawson committed Jul 27, 2020
1 parent becf1f4 commit 5ef33a51a4be9d7bfc2e3ad2070193821119c806
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/expression/qgsexpressionnodeimpl.cpp
@@ -1308,7 +1308,8 @@ QVariant QgsExpressionNodeColumnRef::evalNode( QgsExpression *parent, const QgsE
return feature.attribute( mName );
}
}
parent->setEvalErrorString( tr( "Column '%1' not found" ).arg( mName ) );
if ( index < 0 )
parent->setEvalErrorString( tr( "Column '%1' not found" ).arg( mName ) );
return QVariant();
}

0 comments on commit 5ef33a5

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