Skip to content

Commit 1ffc3fd

Browse files
signedavm-kuhn
authored andcommittedNov 2, 2017
set feature when starting action on attribute edit form
1 parent 5ffbb35 commit 1ffc3fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/gui/qgsactionmenu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ void QgsActionMenu::triggerAction()
8989
{
9090
// define custom substitutions: layer id and clicked coords
9191
QgsExpressionContext context = mLayer->createExpressionContext();
92+
context.setFeature( mFeature );
9293

9394
QgsExpressionContextScope *actionScope = new QgsExpressionContextScope();
9495
actionScope->addVariable( QgsExpressionContextScope::StaticVariable( QStringLiteral( "action_scope" ), mActionScope, true ) );

0 commit comments

Comments
 (0)
Please sign in to comment.