Skip to content

Commit

Permalink
While adding and editing sublocations, handle cases where the parent …
Browse files Browse the repository at this point in the history
…library is not attached to an account profile.
  • Loading branch information
mdnoble73 committed Feb 4, 2025
1 parent 8df20d3 commit 340133c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/web/release_notes/25.02.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
- Correctly format the Date Scheduled and Date Run fields within the Scheduled Update Details popup. (*MDN*)
- Improve reliability of authenticating tokens for LiDA (DIS-269) (*MDN*)
- Make Download Supplemental File buttons translatable. (DIS-265) (*MDN*)
- While adding and editing sublocations, handle cases where the parent library is not attached to an account profile. (*MDN*)

//leo
### Indexing Updates
Expand Down
2 changes: 1 addition & 1 deletion code/web/sys/LibraryLocation/Sublocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static function getObjectStructure($context = ''): array {
$uneditableForILS = false;
global $library;
$accountProfile = $library->getAccountProfile();
if ($accountProfile->ils == 'polaris') {
if ($accountProfile !== false && $accountProfile->ils == 'polaris') {
$uneditableForILS = true;
}

Expand Down

0 comments on commit 340133c

Please sign in to comment.