From da5a4cc8c738640b3ca424ec190b00681c042263 Mon Sep 17 00:00:00 2001 From: Ewan Cahen Date: Mon, 25 Mar 2024 14:04:04 +0100 Subject: [PATCH] fix: fix global search unintentionally showing research units --- database/100-create-api-views.sql | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/100-create-api-views.sql b/database/100-create-api-views.sql index acb895b48..cc0f39c4c 100644 --- a/database/100-create-api-views.sql +++ b/database/100-create-api-views.sql @@ -923,7 +923,7 @@ $$ -- ONLY TOP LEVEL ORGANISATIONS organisation.parent IS NULL AND - organisation.slug ILIKE CONCAT('%', query, '%') OR organisation."name" ILIKE CONCAT('%', query, '%') + (organisation.slug ILIKE CONCAT('%', query, '%') OR organisation."name" ILIKE CONCAT('%', query, '%')) ; $$; diff --git a/docker-compose.yml b/docker-compose.yml index ab5aeb2ac..0727e18f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ version: "3.0" services: database: build: ./database - image: rsd/database:2.2.1 + image: rsd/database:2.2.2 ports: # enable connection from outside (development mode) - "5432:5432"