mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Use ther morphto assigned
This commit is contained in:
parent
daaf98783f
commit
c37fa44f72
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue