mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix public status location (#10526)
* Fix public status location Implementing __toString() seemed to be the most elegant way to fix it. Added pre-loading for locations too * Take advantage of new __toString function
This commit is contained in:
@@ -155,4 +155,9 @@ class Location extends Model
|
||||
{
|
||||
return $this->hasMany('App\Models\Device', 'location_id');
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->location;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user