Skip to content

Commit

Permalink
Item12466: A_VALUE needs to expand to mapped value
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@16678 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Apr 23, 2013
1 parent a54e36b commit 8daaf7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/lib/Foswiki/Form.pm
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,11 @@ sub renderForDisplay {
# Legacy; was %A_TITLE% before it was $title
$row =~ s/%A_TITLE%/\$title/g;
$row =~ s/%A_VALUE%/\$value/g; # Legacy
$text .= $fieldDef->renderForDisplay( $row, $fm->{value} );

# display => 1 gets mapped values (rather than raw)
$text .=
$fieldDef->renderForDisplay( $row, $fm->{value},
{ display => 1 } );
}
}
return '' if $hasAllFieldsHidden;
Expand Down

0 comments on commit 8daaf7f

Please sign in to comment.