diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f3aedf5a5..5dc61eb04 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,3 +1,8 @@ +7.0.7 + - fix: sqlform trunctate search results doesn't work (Martin Kamerbeek / + Procolix) + + 7.0.6 - fix: Error in DateTime.pm - Added a cookieTTL parameter to the config file which lets you set an optional expiration time of the webgui session cookie diff --git a/lib/WebGUI/Asset/Wobject/SQLForm.pm b/lib/WebGUI/Asset/Wobject/SQLForm.pm index 4c911bac4..2e0140694 100644 --- a/lib/WebGUI/Asset/Wobject/SQLForm.pm +++ b/lib/WebGUI/Asset/Wobject/SQLForm.pm @@ -3898,6 +3898,8 @@ my $value; } else { $value = $row{$fieldProperties->{$_}->{fieldName}}; } + + $value = substr($value, 0, $fieldProperties->{$_}->{summaryLength}) if ($fieldProperties->{$_}->{summaryLength}); $value =~ s/\n/
/g if (1);