From fe2b81772b50bd78bf66ffa7d51613dabd87f8e3 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 8 Apr 2010 14:41:27 -0500 Subject: [PATCH] add 11477: Don't fill in a default synopsis --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Search/Index.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f7d068808..e151911df 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.9.3 + - added #11477: No synopsis in asset now means no synopsis in search index - added #11007: Added drag'n'drop sorting in Gallery Album Edit View (Bernd Kalbfuß-Zimmermann) 7.9.2 diff --git a/lib/WebGUI/Search/Index.pm b/lib/WebGUI/Search/Index.pm index d12612a0e..1ac78afbe 100644 --- a/lib/WebGUI/Search/Index.pm +++ b/lib/WebGUI/Search/Index.pm @@ -125,7 +125,7 @@ sub create { $description, WebGUI::Keyword->new($self->session)->getKeywordsForAsset({asset=>$asset})); $keywords = $self->_filterKeywords($keywords); - my $synopsis = $asset->get("synopsis") || substr($description,0,255) || substr($keywords,0,255); + my $synopsis = $asset->get("synopsis") || substr($description,0,255); my $add = $self->session->db->prepare("insert into assetIndex (assetId, title, url, creationDate, revisionDate, ownerUserId, groupIdView, groupIdEdit, lineage, className, synopsis, keywords) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )"); $add->execute([$asset->getId, $asset->get("title"), $asset->get("url"), $asset->get("creationDate"),