A free open source IT asset/license management system
Fixes #3113 and #4040
snipeef8c1abf28dd
diff --git a/app/Models/SnipeModel.php b/app/Models/SnipeModel.phpindex 43cf0cfc92..2b2b49623b 100644--- a/app/Models/SnipeModel.php+++ b/app/Models/SnipeModel.php@@ -77,6 +77,24 @@ class SnipeModel extends Modelreturn;}+ public function setMinAmtAttribute($value)+ {+ if ($value == '') {+ $value = null;+ }+ $this->attributes['min_amt'] = $value;+ return;+ }++ public function setParentIdAttribute($value)+ {+ if ($value == '') {+ $value = null;+ }+ $this->attributes['parent_id'] = $value;+ return;+ }+//public function getDisplayNameAttribute(){