Prevent license categories from being deleted if there are licenses in that category

This commit is contained in:
snipe 2020-11-17 19:22:10 -08:00
parent 68487e1200
commit 0286cf6d46

View file

@ -165,6 +165,8 @@ class Category extends SnipeModel
return $this->components()->count();
case 'consumable':
return $this->consumables()->count();
case 'license':
return $this->licenses()->count();
}
return '0';
}