Skip to content
Permalink
Browse files

convert $currfield (was %%) running actions from "Identify actions" tool

  • Loading branch information
brushtyler committed Mar 14, 2012
1 parent db1c401 commit 03f86366cd8b0764377f84f0c6c1dd241bb79294
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsattributeaction.cpp
@@ -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 );
}

0 comments on commit 03f8636

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