Skip to content

Commit a82772d

Browse files
committed
Merge branch '24.03.01' into 24.04.00
2 parents 31a5b99 + 692771b commit a82772d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

code/web/Drivers/Koha.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,12 @@ function updatePatronInfo($patron, $canUpdateContactInfo, $fromMasquerade = fals
356356
$postResults = $this->postToKohaPage($catalogUrl . '/cgi-bin/koha/opac-memberentry.pl', $postVariables);
357357

358358
$messageInformation = [];
359-
if (preg_match('%<div class="alert alert-warning">(.*?)</div>%s', $postResults, $messageInformation)) {
359+
if (preg_match('%<div class="alert alert-error">(.*?)</div>%s', $postResults, $messageInformation)) {
360+
$error = $messageInformation[1];
361+
$error = str_replace('<h3>', '<h4>', $error);
362+
$error = str_replace('</h3>', '</h4>', $error);
363+
$result['messages'][] = trim($error);
364+
} elseif (preg_match('%<div class="alert alert-warning">(.*?)</div>%s', $postResults, $messageInformation)) {
360365
$error = $messageInformation[1];
361366
$error = str_replace('<h3>', '<h4>', $error);
362367
$error = str_replace('</h3>', '</h4>', $error);

code/web/release_notes/24.03.01.MD

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
### Evergreen Updates
99
- Handle null objets during login. (*MDN*)
1010

11+
### Koha Updates
12+
- Check for additional error messages when updating patron info with bypass review queue off. (*MDN*)
13+
1114
### Sierra Updates
1215
- Check for null value when loading format. (*MDN*)
1316

0 commit comments

Comments
 (0)