Skip to content

Commit b3e3713

Browse files
committed
Merge branch 'release-11.0' into dev
2 parents c1610a9 + ee97d6b commit b3e3713

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

module/VuFind/src/VuFind/Auth/Manager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,11 @@ public function updatePassword(Request $request): UserEntityInterface
790790
public function resetPassword(array $recoveryData, array $params)
791791
{
792792
$this->getAuth()->resetPassword($recoveryData, $params);
793+
$this->auditEventService->addEvent(
794+
AuditEventType::User,
795+
AuditEventSubType::PasswordReset,
796+
data: compact('recoveryData', 'params')
797+
);
793798
}
794799

795800
/**

module/VuFind/src/VuFind/Db/Type/AuditEventSubtype.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ enum AuditEventSubtype: string
7272
case LoginFailure = 'login_fail';
7373
case Logout = 'logout';
7474
case PasswordChanged = 'password_changed';
75+
case PasswordReset = 'password_reset';
7576
case RememberLogin = 'remember_login';
7677
case SaveSearch = 'save_search';
7778
case ScheduleSearch = 'schedule_search';

module/VuFind/src/VuFind/ILS/Driver/Folio.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,20 +2460,23 @@ public function placeHold($holdDetails)
24602460
if (!empty($holdDetails['comment'])) {
24612461
$requestBody['patronComments'] = $holdDetails['comment'];
24622462
}
2463-
$allowed = $this->getAllowedServicePoints(
2463+
$allowedServicePoints = $fulfillmentValue == 'Delivery' ? null : $this->getAllowedServicePoints(
24642464
$instance->id,
24652465
$holdDetails['item_id'] ?? null,
24662466
$holdDetails['patron']['id']
24672467
);
24682468
$preferredRequestType = $this->getPreferredRequestType($holdDetails);
24692469
foreach ($this->getRequestTypeList($preferredRequestType) as $requestType) {
24702470
// Skip illegal request types, if we have validation data available:
2471-
if (null !== $allowed) {
2471+
if (null !== $allowedServicePoints) {
24722472
if (
24732473
// Unsupported request type:
2474-
!isset($allowed[$requestType])
2474+
!isset($allowedServicePoints[$requestType])
24752475
// Unsupported pickup location:
2476-
|| !in_array($holdDetails['pickUpLocation'], array_column($allowed[$requestType] ?? [], 'id'))
2476+
|| !in_array(
2477+
$holdDetails['pickUpLocation'],
2478+
array_column($allowedServicePoints[$requestType] ?? [], 'id')
2479+
)
24772480
) {
24782481
continue;
24792482
}

0 commit comments

Comments
 (0)