Skip to content

Commit 9be1f3a

Browse files
committed
Merge branch '24.04.00' into 24.05.00
2 parents 4c2d0a7 + dddd54c commit 9be1f3a

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

code/web/Drivers/PalaceProjectDriver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function placeHold($patron, $recordId, $pickupBranch = null, $cancelDate = null)
379379
$this->initCurlWrapper();
380380
$this->curlWrapper->addCustomHeaders($headers, true);
381381
$response = $this->curlWrapper->curlGetPage($borrowLink);
382-
ExternalRequestLogEntry::logRequest('palaceProject.checkoutTitle', 'POST', $borrowLink, $this->curlWrapper->getHeaders(), false, $this->curlWrapper->getResponseCode(), $response, []);
382+
ExternalRequestLogEntry::logRequest('palaceProject.placeHold', 'POST', $borrowLink, $this->curlWrapper->getHeaders(), false, $this->curlWrapper->getResponseCode(), $response, []);
383383
if ($response != false) {
384384
$jsonResponse = json_decode($response);
385385
if ($jsonResponse == false) {

code/web/release_notes/24.04.00.MD

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
- Correct message when no holds can be frozen or thawed to show the proper alert style. (Ticket 127582) (*MDN*)
161161
- Updates to checking the status of User List and Side Loads indexing. (*MDN*)
162162
- Update so Custom CSS and JavaScript can be turned off with noCustom, noCustomCSS, or noCustomJavaScript rather than requiring a combination of parameters. (*MDN*)
163+
- Fix notice changing language when logged out if a library only has a single theme for it. (*MDN*)
163164

164165
## This release includes code contributions from
165166
- ByWater Solutions

code/web/services/AJAX/JSON.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,11 @@ function updateDisplaySettings() {
616616
}
617617

618618
$activeThemeId = $interface->getVariable('activeThemeId');
619-
$preferredTheme = strip_tags($_REQUEST['preferredTheme']);
620-
if ($activeThemeId != $preferredTheme) {
621-
$_SESSION['preferredTheme'] = $preferredTheme;
619+
if (isset($_REQUEST['preferredTheme'])) {
620+
$preferredTheme = strip_tags($_REQUEST['preferredTheme']);
621+
if ($activeThemeId != $preferredTheme) {
622+
$_SESSION['preferredTheme'] = $preferredTheme;
623+
}
622624
}
623625

624626
return [

code/web/sys/Grouping/GroupedWorkDisplaySetting.php

+12-4
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,12 @@ public function fetch() {
689689
if (isset($this->showInSearchResultsMainDetails) && is_string($this->showInSearchResultsMainDetails) && !empty($this->showInSearchResultsMainDetails)) {
690690
// convert to array retrieving from database
691691
$unSerialized = unserialize($this->showInSearchResultsMainDetails);
692-
$this->showInSearchResultsMainDetails = array_combine($unSerialized, $unSerialized);
693-
if (!$this->showInSearchResultsMainDetails) {
692+
if (!empty($unSerialized)) {
693+
$this->showInSearchResultsMainDetails = array_combine($unSerialized, $unSerialized);
694+
if (!$this->showInSearchResultsMainDetails) {
695+
$this->showInSearchResultsMainDetails = [];
696+
}
697+
}else{
694698
$this->showInSearchResultsMainDetails = [];
695699
}
696700
}
@@ -699,8 +703,12 @@ public function fetch() {
699703
// convert to array retrieving from database
700704
try {
701705
$unSerialized = unserialize($this->showInMainDetails);
702-
$this->showInMainDetails = array_combine($unSerialized, $unSerialized);
703-
if (!$this->showInMainDetails) {
706+
if (!empty($unSerialized)) {
707+
$this->showInMainDetails = array_combine($unSerialized, $unSerialized);
708+
if (!$this->showInMainDetails) {
709+
$this->showInMainDetails = [];
710+
}
711+
}else{
704712
$this->showInMainDetails = [];
705713
}
706714
} catch (Exception $e) {

code/web/sys/LibraryLocation/Library.php

+1
Original file line numberDiff line numberDiff line change
@@ -2906,6 +2906,7 @@ static function getObjectStructure($context = ''): array {
29062906
'description' => 'A list of library codes that you would like included in the available at facet separated by pipes |.',
29072907
'size' => '20',
29082908
'hideInLists' => true,
2909+
'forcesReindex' => true,
29092910
],
29102911
],
29112912
],

0 commit comments

Comments
 (0)