Skip to content

Commit

Permalink
Fix typo issue
Browse files Browse the repository at this point in the history
- Correctly use parameters as object properties instead of array elements after casting parameter array
  • Loading branch information
Lucas Montoya authored and Jacobomara901 committed Dec 17, 2024
1 parent 2024a4e commit 034c9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/web/Drivers/Koha.php
Original file line number Diff line number Diff line change
Expand Up @@ -3088,7 +3088,7 @@ function freezeHold($patron, $recordId, $itemToFreezeId, $dateToReactivate) : ar

$postParams = (object) [];
if (strlen($dateToReactivate) > 0) {
$postParams['end_date'] = $dateToReactivate;
$postParams->end_date = $dateToReactivate;
}

$endpoint = "/api/v1/holds/$itemToFreezeId/suspension";
Expand Down

0 comments on commit 034c9a2

Please sign in to comment.