Skip to content

Commit

Permalink
fix reset link for koha 24.05
Browse files Browse the repository at this point in the history
  • Loading branch information
catsoup11789 committed Aug 5, 2024
1 parent e2b08d8 commit 962d457
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/web/Drivers/Koha.php
Original file line number Diff line number Diff line change
Expand Up @@ -3651,6 +3651,9 @@ function processEmailResetPinForm() {
$error = str_replace('<h3>', '<h4>', $error);
$error = str_replace('</h3>', '</h4>', $error);
$error = str_replace('/cgi-bin/koha/opac-password-recovery.pl', '/MyAccount/EmailResetPin', $error);
if ($kohaVersion >= 24.05) {
$error = str_replace('#', '/MyAccount/EmailResetPin', $error);
}
$result['error'] = trim($error);
} elseif (preg_match('%<div id="password-recovery">\s+<div class="alert alert-info">(.*?)<a href="/cgi-bin/koha/opac-main.pl">Return to the main page</a>\s+</div>\s+</div>%s', $postResults, $messageInformation)) {
$message = $messageInformation[1];
Expand Down
4 changes: 4 additions & 0 deletions code/web/release_notes/24.07.02.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Aspen Discovery Updates
### Koha Updates
- Fix issues related to resending a password reset link on Koha version 24.05. (*KK*)

### Polaris Updates
- Discard any item fields from the base MARC record retrieved from Polaris to avoid conflicts with actual items during indexing. (Tickets 135614, 135843) (*MDN*)

Expand All @@ -8,3 +11,4 @@
## This release includes code contributions from
- ByWater Solutions
- Mark Noble (MDN)
- Kirstien Kroeger (KK)

0 comments on commit 962d457

Please sign in to comment.