From 083cb5883078a61908f784a137d71ae6afcac8ee Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Mon, 4 Apr 2011 16:12:23 -0700 Subject: [PATCH] #17484: Gallery search uses title, description and tags --HG-- branch : 1.x --- .../Orchard.Packaging/Controllers/GalleryController.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs b/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs index 516a24179..5624d6c7c 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs @@ -1,5 +1,4 @@ using System; -using System.Collections; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; @@ -151,7 +150,11 @@ namespace Orchard.Packaging.Controllers { packages => { packages = packages.Where(p => p.PackageType == packageType && p.IsLatestVersion && - (string.IsNullOrEmpty(options.SearchText) || p.Title.Contains(options.SearchText))); + (string.IsNullOrEmpty(options.SearchText) + || p.Title.Contains(options.SearchText) + || p.Description.Contains(options.SearchText) + || p.Tags.Contains(options.SearchText) + )); switch (options.Order) { case PackagingExtensionsOrder.Downloads: