mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 20:26:51 -08:00
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:
commit
e8be178ac7
|
@ -305,7 +305,7 @@ class Accessory extends SnipeModel
|
|||
*/
|
||||
public function requireAcceptance()
|
||||
{
|
||||
return $this->category->require_acceptance;
|
||||
return $this->category->require_acceptance ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue