mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
convert $currfield (was %%) running actions from "Identify actions" tool
This commit is contained in:
parent
db1c401dd9
commit
03f86366cd
@ -77,7 +77,10 @@ void QgsAttributeAction::doAction( int index, QgsFeature &feat, int defaultValue
|
||||
{
|
||||
QMap<QString, QVariant> substitutionMap;
|
||||
if ( defaultValueIndex >= 0 )
|
||||
substitutionMap.insert( "$currfield", QVariant( defaultValueIndex ) );
|
||||
{
|
||||
if ( feat.attributeMap().contains( defaultValueIndex ) )
|
||||
substitutionMap.insert( "$currfield", feat.attributeMap()[ defaultValueIndex ] );
|
||||
}
|
||||
|
||||
doAction( index, feat, &substitutionMap );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user