Fix binkp remote closing connection, add/delete session details, menu item this system, minor CSS fixes, move system form editing to individual files
This commit is contained in:
@@ -26,6 +26,12 @@ class Address extends Model
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
/**
|
||||
* Find children dependant on this record
|
||||
*
|
||||
* @todo While this is finding children of hubs, we are not currently finding children of Hosts or Regions.
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function children()
|
||||
{
|
||||
return $this->belongsTo(self::class,'id','hub_id');
|
||||
@@ -162,7 +168,7 @@ class Address extends Model
|
||||
static $session = NULL;
|
||||
|
||||
if (is_null($session)) {
|
||||
$session = (new AddressZone)
|
||||
$session = (new SystemZone)
|
||||
->where('zone_id',$this->zone_id)
|
||||
->where('system_id',$this->system_id)
|
||||
->single();
|
||||
|
Reference in New Issue
Block a user