Skip to content

Commit

Permalink
Merge pull request #19 from eea/develop
Browse files Browse the repository at this point in the history
look for facilityNames in concatenated string
  • Loading branch information
claudiaifrim committed Oct 24, 2022
2 parents a140774 + 7867554 commit b636396
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [2.0.10](https://github.com/eea/volto-industry-theme/compare/2.0.9...2.0.10) - 6 October 2022
### [2.0.11](https://github.com/eea/volto-industry-theme/compare/2.0.10...2.0.11) - 24 October 2022

#### :rocket: New Features
#### :hammer_and_wrench: Others

- feat: Apply siteName & facilityName filters [Miu Razvan - [`ce2a3be`](https://github.com/eea/volto-industry-theme/commit/ce2a3be2f260cf78a01ed22b229a09acdbdd2445)]
- look for facilityNames in concatenated string [Claudia Ifrim - [`f20fd45`](https://github.com/eea/volto-industry-theme/commit/f20fd4511cb7d2d87ad2d072a6896463eb449c33)]
### [2.0.10](https://github.com/eea/volto-industry-theme/compare/2.0.9...2.0.10) - 6 October 2022

#### :hammer_and_wrench: Others

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-industry-theme",
"version": "2.0.10",
"version": "2.0.11",
"description": "@eeacms/volto-industry-theme: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/IndustryMap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export const getWhereStatement = (data) => {
}

if (search?.type === 'facility' && search?.text) {
where[filter++] = [`facilityNames LIKE '${search.text}%'`];
where[filter++] = [`facilityNames LIKE '%${search.text}%'`];
}

return where
Expand Down

0 comments on commit b636396

Please sign in to comment.