Skip to content

Commit

Permalink
Performance improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill authored and Aaron Carlino committed Oct 2, 2018
1 parent 265b948 commit b75da64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/ElementalArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function getOwnerPage()

foreach ($elementalAreaRelations as $eaRelationship) {
$areaID = $eaRelationship . 'ID';
$page = Versioned::get_by_stage($class, Versioned::DRAFT)->filter($areaID, $this->ID)->first();
$page = Versioned::get_one_by_stage($class, Versioned::DRAFT, "\"$areaID\" = {$this->ID}");

if ($page) {
if ($this->OwnerClassName !== $class) {
Expand Down

0 comments on commit b75da64

Please sign in to comment.