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"),