A free open source IT asset/license management system
Fix: No Notifications for checking out Consumables (#5898)
Till Deekeb6e3715cd80a
diff --git a/app/Models/Consumable.php b/app/Models/Consumable.phpindex 23487c5ba8..7f61c895f1 100644--- a/app/Models/Consumable.php+++ b/app/Models/Consumable.php@@ -156,6 +156,10 @@ class Consumable extends SnipeModelreturn $this->belongsToMany('\App\Models\User', 'consumables_users', 'consumable_id', 'assigned_to')->count();}+ public function checkin_email()+ {+ return $this->category->checkin_email;+ }public function requireAcceptance(){diff --git a/app/Models/License.php b/app/Models/License.phpindex 559b48ebe8..9685b4b8f6 100755--- a/app/Models/License.php+++ b/app/Models/License.php@@ -228,7 +228,7 @@ class License extends Depreciablepublic function checkin_email(){- return $this->model->category->checkin_email;+ return $this->category->checkin_email;}public function requireAcceptance()