Commit a711ae55 authored by Ben Hayward's avatar Ben Hayward

Return from guids array if it exists

1 merge request!338[Sprint/NuancedNumbat](fix): Added in function to return original owner guid #806
Pipeline #84763589 failed with stages
in 4 minutes and 9 seconds
......@@ -429,7 +429,10 @@ class Group extends NormalizedEntity
*/
public function getOwnerGuid()
{
return $this->getOwnerObj()->guid;
$guids = $this->getOwnerGuids();
return $guids
? guids[0]
: $this->getOwnerObj()->guid;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment