Skip to content
Permalink
Browse files

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

…feature is available
  • Loading branch information
nyalldawson committed Jul 24, 2020
1 parent 2073790 commit 014498f3b61ce77c58e065368069579b3865bc67
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( "Field '%1' not found" ).arg( mName ) );
if ( index < 0 )
parent->setEvalErrorString( tr( "Field '%1' not found" ).arg( mName ) );
return QVariant();
}

0 comments on commit 014498f

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