From f70f34d9e0ba9d6734d578a382fa0bd060618f98 Mon Sep 17 00:00:00 2001 From: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com> Date: Fri, 25 Aug 2023 12:23:42 +0200 Subject: [PATCH] SUPPORT-1149: Only search in subject --- CHANGELOG.md | 6 +++++- src/Service/MicrosoftGraphBookingService.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26cad3f..a1c833e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,13 @@ See [keep a changelog](https://keepachangelog.com/en/1.0.0/) for information abo ## [Unreleased] +### Changed + +- Changed search query to only allow search in subject. + ## [1.1.1] - 2023-08-24 -## Changed +### Changed - Changed user bookings to paginated diff --git a/src/Service/MicrosoftGraphBookingService.php b/src/Service/MicrosoftGraphBookingService.php index cf3f545..7ce3d4d 100644 --- a/src/Service/MicrosoftGraphBookingService.php +++ b/src/Service/MicrosoftGraphBookingService.php @@ -361,7 +361,7 @@ public function getUserBookings(string $userId, ?string $search = null, int $pag $queryString = "(body:\"$userIdString\")"; if (null !== $search && strlen($search) > 1) { - $queryString .= " AND (body:\"$search\")"; + $queryString .= " AND (subject:\"$search\")"; } $body = [