From f7654c83d6e80b99a7931cfd3fc7fdf1937e500b Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 18 Aug 2006 13:08:22 +0000 Subject: [PATCH] fix: sqlform trunctate search results doesn't work --- docs/changelog/7.x.x.txt | 5 +++++ lib/WebGUI/Asset/Wobject/SQLForm.pm | 2 ++ 2 files changed, 7 insertions(+) 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);