Skip to content

Commit

Permalink
SUPPORT-1149: Only search in subject
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Aug 25, 2023
1 parent 6764178 commit f70f34d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/Service/MicrosoftGraphBookingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit f70f34d

Please sign in to comment.