A free open source IT asset/license management system
Added notes to searchable and fillable attributes
snipee6ae9cae6bb3
diff --git a/app/Models/Category.php b/app/Models/Category.phpindex 5965404f59..cfa83328ab 100755--- a/app/Models/Category.php+++ b/app/Models/Category.php@@ -71,6 +71,7 @@ class Category extends SnipeModel'require_acceptance','use_default_eula','created_by',+ 'notes',];use Searchable;@@ -80,7 +81,7 @@ class Category extends SnipeModel** @var array*/- protected $searchableAttributes = ['name', 'category_type'];+ protected $searchableAttributes = ['name', 'category_type', 'notes'];/*** The relations and their attributes that should be included when searching the model.diff --git a/app/Models/Group.php b/app/Models/Group.phpindex 7278152df9..ef60e6737c 100755--- a/app/Models/Group.php+++ b/app/Models/Group.php@@ -18,7 +18,8 @@ class Group extends SnipeModelprotected $fillable = ['name',- 'permissions'+ 'permissions',+ 'notes',];/**@@ -37,7 +38,7 @@ class Group extends SnipeModel** @var array*/- protected $searchableAttributes = ['name', 'created_at'];+ protected $searchableAttributes = ['name', 'created_at', 'notes'];/*** The relations and their attributes that should be included when searching the model.diff --git a/app/Models/Location.php b/app/Models/Location.phpindex f146d37c66..63cb2de39d 100755--- a/app/Models/Location.php+++ b/app/Models/Location.php@@ -72,6 +72,7 @@ class Location extends SnipeModel'currency','manager_id','image',+ 'notes',];protected $hidden = ['user_id'];@@ -82,7 +83,7 @@ class Location extends SnipeModel** @var array*/- protected $searchableAttributes = ['name', 'address', 'city', 'state', 'zip', 'created_at', 'ldap_ou', 'phone', 'fax'];+ protected $searchableAttributes = ['name', 'address', 'city', 'state', 'zip', 'created_at', 'ldap_ou', 'phone', 'fax', 'notes'];/*** The relations and their attributes that should be included when searching the model.diff --git a/app/Models/Manufacturer.php b/app/Models/Manufacturer.phpindex 1b31f496d3..6d7b010677 100755--- a/app/Models/Manufacturer.php+++ b/app/Models/Manufacturer.php@@ -53,6 +53,7 @@ class Manufacturer extends SnipeModel'support_url','url','warranty_lookup_url',+ 'notes',];use Searchable;@@ -62,7 +63,7 @@ class Manufacturer extends SnipeModel** @var array*/- protected $searchableAttributes = ['name', 'created_at'];+ protected $searchableAttributes = ['name', 'created_at', 'notes'];/*** The relations and their attributes that should be included when searching the model.