Skip to content

Commit

Permalink
Merge branch 'release-10.0' into release-10.0-datetime-format
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Sep 4, 2024
2 parents 59a5442 + 60aef1a commit 2424a8c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/OAuth2/Entity/UserEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function __construct(
}
if ($userIdentifier === null) {
throw new \VuFind\Exception\BadConfig(
"$userIdentifierField empty for user {$user->id}."
"$userIdentifierField empty for user {$user->getId()}."
. ' The configured user identifier field has to be required.'
);
}
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Search/History.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getSearchHistory($userId = null)
$unsaved[] = $search;
}
if ($search->getOptions()->supportsScheduledSearch()) {
$schedule[$search->getSearchId()] = $current->getNotificationFrequency();
$schedule[$current->getId()] = $current->getNotificationFrequency();
}
}

Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap3/templates/myresearch/schedulesearch.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<?=$this->component('show-account-menu-button')?>

<div class="<?=$this->layoutClass('mainbody')?>">
<?php if ($user && !empty($user->email)): ?>
<?php if ($user && !empty($user->getEmail())): ?>
<div class="alert alert-info alert-email-notification">
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->email) ?>
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->getEmail()) ?>
<?php if ($this->auth()->getManager()->supportsEmailChange()): ?>
(<a href="<?=$this->url('myresearch-profile');?>"><?=$this->transEsc('edit');?></a>)
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap3/templates/record/comments-list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<strong><?=null === $comment->getUser()->getId() ? $this->transEsc('comment_anonymous_user') : $this->escapeHtml(trim($comment->getUser()->getFirstName() . ' ' . $comment->getUser()->getLastName()))?></strong><br>
<small>
<?=$this->escapeHtml($comment->getCreated()->format($this->config()->dateTimeFormat()))?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->id): ?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->getId()): ?>
<a href="<?=$this->escapeHtmlAttr($this->recordLinker()->getActionUrl($this->driver, 'DeleteComment', ['delete' => $comment->getId()]))?>" id="recordComment<?=$this->escapeHtml($comment->getId())?>" class="delete"><?=$this->transEsc('Delete')?></a>
<?php endif; ?>
</small>
Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap5/templates/myresearch/schedulesearch.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<?=$this->component('show-account-menu-button')?>

<div class="<?=$this->layoutClass('mainbody')?>">
<?php if ($user && !empty($user->email)): ?>
<?php if ($user && !empty($user->getEmail())): ?>
<div class="alert alert-info alert-email-notification">
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->email) ?>
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->getEmail()) ?>
<?php if ($this->auth()->getManager()->supportsEmailChange()): ?>
(<a href="<?=$this->url('myresearch-profile');?>"><?=$this->transEsc('edit');?></a>)
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/record/comments-list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<strong><?=null === $comment->getUser()->getId() ? $this->transEsc('comment_anonymous_user') : $this->escapeHtml(trim($comment->getUser()->getFirstName() . ' ' . $comment->getUser()->getLastName()))?></strong><br>
<small>
<?=$this->escapeHtml($comment->getCreated()->format($this->config()->dateTimeFormat()))?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->id): ?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->getId()): ?>
<a href="<?=$this->escapeHtmlAttr($this->recordLinker()->getActionUrl($this->driver, 'DeleteComment', ['delete' => $comment->getId()]))?>" id="recordComment<?=$this->escapeHtml($comment->getId())?>" class="delete"><?=$this->transEsc('Delete')?></a>
<?php endif; ?>
</small>
Expand Down

0 comments on commit 2424a8c

Please sign in to comment.