Skip to content

Commit

Permalink
Use already loaded value
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnoble73 committed Sep 16, 2024
1 parent 0345880 commit 1a0d7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/web/RecordDrivers/PalaceProjectRecordDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function getTitleAvailability() : ?PalaceProjectTitleAvailability{
if (!empty($collections)){
$titleAvailability = new PalaceProjectTitleAvailability();
$titleAvailability->titleId = $this->id;
$titleAvailability->whereAddIn('collectionId', $this->getActiveCollectionIds(), false);
$titleAvailability->whereAddIn('collectionId', $collections, false);
$titleAvailability->deleted = 0;
if ($titleAvailability->find(true)){
return $titleAvailability;
Expand Down

0 comments on commit 1a0d7fc

Please sign in to comment.