Fixes status display in listing

This commit is contained in:
snipe 2017-10-28 07:11:06 -07:00
parent 1399ebb133
commit daaf98783f

View file

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