Moved checkModel into model from controller

This commit is contained in:
snipe
2015-03-27 13:45:37 -07:00
parent c92f09fddb
commit 605d0ed8e1
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ class AssetsController extends AdminController
} else {
$asset->rtd_location_id = e(Input::get('rtd_location_id'));
}
$checkModel = $this->checkModel(e(Input::get('model_id')));
$checkModel = $asset->checkModel(e(Input::get('model_id')));
$asset->mac_address = ($checkModel == true) ? e(Input::get('mac_address')) : NULL;
// Save the asset data