Skip to content

Commit

Permalink
Merge pull request #308 from DigitalExcellence/bugfix/307-searching-d…
Browse files Browse the repository at this point in the history
…oes-not-include-project-i

Fixes #307 - Project icons are now included when searching projects
  • Loading branch information
Brend-Smits authored Nov 24, 2020
2 parents 78cc449 + 906a365 commit af4edef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions Repositories/ProjectRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ private IQueryable<Project> GetProjectQueryable(string query)
{
return DbSet
.Include(p => p.User)
.Include(i => i.ProjectIcon)
.Where(p =>
p.Name.Contains(query) ||
p.Description.Contains(query) ||
Expand Down

0 comments on commit af4edef

Please sign in to comment.