From 906a3651ac1d8edb55de27a3b7bbc842fb3c0297 Mon Sep 17 00:00:00 2001 From: Brend Smits Date: Thu, 19 Nov 2020 13:47:23 +0100 Subject: [PATCH] Fixes #307 - Project icons are now included when searching projects --- CHANGELOG.md | 1 + Repositories/ProjectRepository.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19593fc4..4229d06e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed issue where unused project icons where left in the database & File System - [#271](https://github.com/DigitalExcellence/dex-backend/issues/271) - Refactored Postman CLI files to make them work from Postman folder. - [#304](https://github.com/DigitalExcellence/dex-backend/issues/304) +- Fixed issue where searching for a project did not include the project icon. - [#307](https://github.com/DigitalExcellence/dex-backend/issues/307) ### Security diff --git a/Repositories/ProjectRepository.cs b/Repositories/ProjectRepository.cs index a76f1961..41f5a76c 100644 --- a/Repositories/ProjectRepository.cs +++ b/Repositories/ProjectRepository.cs @@ -311,6 +311,7 @@ private IQueryable GetProjectQueryable(string query) { return DbSet .Include(p => p.User) + .Include(i => i.ProjectIcon) .Where(p => p.Name.Contains(query) || p.Description.Contains(query) ||