Merge pull request #14393 from marcusmoore/bug/sc-24862

Guard against checking require acceptance on non-existent relationship in accessory model
This commit is contained in:
snipe 2024-03-08 01:04:26 +00:00 committed by GitHub
commit e8be178ac7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,7 +305,7 @@ class Accessory extends SnipeModel
*/
public function requireAcceptance()
{
return $this->category->require_acceptance;
return $this->category->require_acceptance ?? false;
}
/**