mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
set feature when starting action on attribute edit form
This commit is contained in:
parent
5ffbb359d0
commit
1ffc3fd190
@ -89,6 +89,7 @@ void QgsActionMenu::triggerAction()
|
||||
{
|
||||
// define custom substitutions: layer id and clicked coords
|
||||
QgsExpressionContext context = mLayer->createExpressionContext();
|
||||
context.setFeature( mFeature );
|
||||
|
||||
QgsExpressionContextScope *actionScope = new QgsExpressionContextScope();
|
||||
actionScope->addVariable( QgsExpressionContextScope::StaticVariable( QStringLiteral( "action_scope" ), mActionScope, true ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user