Skip to content

Commit

Permalink
Merge branch '24.03.01' into 24.04.00
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnoble73 committed Mar 28, 2024
2 parents 31a5b99 + 692771b commit a82772d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/web/Drivers/Koha.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,12 @@ function updatePatronInfo($patron, $canUpdateContactInfo, $fromMasquerade = fals
$postResults = $this->postToKohaPage($catalogUrl . '/cgi-bin/koha/opac-memberentry.pl', $postVariables);

$messageInformation = [];
if (preg_match('%<div class="alert alert-warning">(.*?)</div>%s', $postResults, $messageInformation)) {
if (preg_match('%<div class="alert alert-error">(.*?)</div>%s', $postResults, $messageInformation)) {
$error = $messageInformation[1];
$error = str_replace('<h3>', '<h4>', $error);
$error = str_replace('</h3>', '</h4>', $error);
$result['messages'][] = trim($error);
} elseif (preg_match('%<div class="alert alert-warning">(.*?)</div>%s', $postResults, $messageInformation)) {
$error = $messageInformation[1];
$error = str_replace('<h3>', '<h4>', $error);
$error = str_replace('</h3>', '</h4>', $error);
Expand Down
3 changes: 3 additions & 0 deletions code/web/release_notes/24.03.01.MD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
### Evergreen Updates
- Handle null objets during login. (*MDN*)

### Koha Updates
- Check for additional error messages when updating patron info with bypass review queue off. (*MDN*)

### Sierra Updates
- Check for null value when loading format. (*MDN*)

Expand Down

0 comments on commit a82772d

Please sign in to comment.