A free open source IT asset/license management system
Removed attribute assigning blank EOL as 0
sniped6c61e1429d8
diff --git a/app/Models/AssetModel.php b/app/Models/AssetModel.phpindex d0e47e1cf1..c5fb9284aa 100755--- a/app/Models/AssetModel.php+++ b/app/Models/AssetModel.php@@ -46,15 +46,6 @@ class AssetModel extends SnipeModelprotected $injectUniqueIdentifier = true;use ValidatingTrait;- public function setEolAttribute($value)- {- if ($value == '') {- $value = 0;- }-- $this->attributes['eol'] = $value;- }-/*** The attributes that are mass assignable.*diff --git a/tests/Unit/AssetModelTest.php b/tests/Unit/AssetModelTest.phpindex 845e7fce90..aec8edf692 100644--- a/tests/Unit/AssetModelTest.php+++ b/tests/Unit/AssetModelTest.php@@ -10,16 +10,7 @@ use Tests\TestCase;class AssetModelTest extends TestCase{use InteractsWithSettings;-- public function testAnAssetModelZerosOutBlankEols()- {- $am = new AssetModel;- $am->eol = '';- $this->assertTrue($am->eol === 0);- $am->eol = '4';- $this->assertTrue($am->eol == 4);- }-+public function testAnAssetModelContainsAssets(){$category = Category::factory()->create([