Commit dfbf75a4 authored by Jonathan Sacksick's avatar Jonathan Sacksick
Browse files

Issue #3080025 followup: Put back the getOwnerId() check in Profile::presave().

parent 4aec2f17
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -261,7 +261,8 @@ class Profile extends EditorialContentEntityBase implements ProfileInterface {
    }
    // Mark the profile as default if it's being owned by existing
    // non-anonymous user and there's no other default.
    if ($this->getOwner()
    if ($this->getOwnerId()
      && $this->getOwner()
      && $this->isPublished()
      && !$this->isDefault()) {
      $profile = $storage->loadByUser($this->getOwner(), $this->bundle());