Skip to content

Commit

Permalink
- Correct showing material requests when the active library has no lo…
Browse files Browse the repository at this point in the history
…cations
  • Loading branch information
mdnoble73 committed Jan 14, 2025
1 parent 68ec744 commit f4ed3ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions code/web/release_notes/25.01.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@

</div>

### Materials Request Updates
- Correct showing material requests when the active library has no locations. (*MDN*)

### Polaris Updates
- Automatically import sublocations from Polaris. (DIS-46) (*MDN*)
- Set hold pickup area when sublocations are being used while placing holds. (DIS-46) (*MDN*)
Expand Down Expand Up @@ -175,6 +178,11 @@
- Alyssa Drake (ByWater Solutions)
- Myranda Fuentes (Grove)
- Bryan Jones (Nashville Public Library)
- Jordan Fields (Grove)

## Special Documentation thanks to
- Myranda Fuentes (Grove)
- Jordan Fields (Grove)

## This release includes sponsored developments from
- Greater Manchester Inter Library Consortial System (GMILCS)
Expand Down
4 changes: 3 additions & 1 deletion code/web/services/MaterialsRequest/ManageRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ function launch() : void {
$locationsForLibrary[] = $locations->locationId;
}

$materialsRequests->whereAdd('user.homeLocationId IN (' . implode(', ', $locationsForLibrary) . ')');
if (count($locationsForLibrary) > 0) {
$materialsRequests->whereAdd('user.homeLocationId IN (' . implode(', ', $locationsForLibrary) . ')');
}

if (count($availableStatuses) > count($statusesToShow)) {
$materialsRequests->whereAddIn('status', $statusesToShow, false);
Expand Down

0 comments on commit f4ed3ba

Please sign in to comment.