Skip to content

Commit

Permalink
Item11833: fixed compatibility with foswiki >= 1.2.0
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FlexFormPlugin@17492 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Apr 4, 2014
1 parent fd70bd1 commit e505456
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Foswiki/Plugins/FlexFormPlugin/Core.pm
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,15 @@ sub handleRENDERFORDISPLAY {
# - patch in (display) value as $value
# - use raw value as $origvalue
my $origValue = $fieldValue;
if ($field->{type} =~ /\+values/ && $field->can('getDisplayValue')) {
if ($field->can('getDisplayValue')) {
$fieldValue = $field->getDisplayValue($fieldValue);
}

# now dive into the core and see what we get out of it
$line = $field->renderForDisplay($line, $fieldValue, {
bar=>'|', # keep bars
newline=>'$n', # keep newlines
display=> 1,
});

# render left-overs by ourselfs
Expand Down

0 comments on commit e505456

Please sign in to comment.