Skip to content

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.php
index 43cf0cfc92..2b2b49623b 100644
--- a/app/Models/SnipeModel.php
+++ b/app/Models/SnipeModel.php
@@ -77,6 +77,24 @@ class SnipeModel extends Model
return;
}
+ 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()
{