Use ther morphto assigned

This commit is contained in:
snipe 2017-10-28 07:12:22 -07:00
parent daaf98783f
commit c37fa44f72

View file

@ -359,7 +359,7 @@ class AssetPresenter extends Presenter
*/ */
public function statusText() public function statusText()
{ {
if ($this->model->assignedTo()) { if ($this->model->assigned) {
return trans('general.deployed'); return trans('general.deployed');
} }
return $this->model->assetstatus->name; return $this->model->assetstatus->name;