Skip to content

Commit f64d602

Browse files
author
jef
committed
change attribute action notation from [%attr%]/%attr% back to [%attr]/%attr
git-svn-id: http://svn.osgeo.org/qgis/trunk@14341 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent dd7df18 commit f64d602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/qgsattributeaction.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ QString QgsAttributeAction::expandAction( QString action, const QgsAttributeMap
114114

115115
// Check for a replace a quoted version and a non-quoted version.
116116
QString to_replace_1 = "[%" + fit->name() + "]";
117-
QString to_replace_2 = "%" + fit->name() + "%";
118-
QString to_replace_3 = "%" + mLayer->attributeDisplayName( it.key() ) + "%";
119-
QString to_replace_4 = "[%" + mLayer->attributeDisplayName( it.key() ) + "%]";
117+
QString to_replace_2 = "%" + fit->name();
118+
QString to_replace_3 = "%" + mLayer->attributeDisplayName( it.key() );
119+
QString to_replace_4 = "[%" + mLayer->attributeDisplayName( it.key() ) + "]";
120120

121121
expanded_action = expanded_action.replace( to_replace_1, it.value().toString() );
122122
expanded_action = expanded_action.replace( to_replace_2, it.value().toString() );

0 commit comments

Comments
 (0)