Fix for when no zones have been created yet in a domain
This commit is contained in:
parent
c414ebd053
commit
c694280081
@ -10,7 +10,7 @@ use App\Models\{Address,Zone};
|
||||
class ZoneController extends Controller
|
||||
{
|
||||
/**
|
||||
* Add or edit a node
|
||||
* Add or edit a zone
|
||||
*/
|
||||
public function add_edit(Request $request,Zone $o)
|
||||
{
|
||||
|
@ -8,12 +8,10 @@ use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
use App\Classes\FTN\Packet;
|
||||
use App\Models\{Setup,System};
|
||||
use App\Models\Setup;
|
||||
|
||||
class SystemRegisterRequest extends FormRequest
|
||||
{
|
||||
private System $so;
|
||||
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
|
@ -47,7 +47,7 @@ use App\Models\Echoarea;
|
||||
</div>
|
||||
|
||||
<div class="col-2">
|
||||
@if ($o->zones->count() > 1)
|
||||
@if ($o->zones?->count() > 1)
|
||||
<label class="form-label">Flatten Zones <i class="bi bi-info-circle" title="Treat this domain as a 2D domain"></i></label>
|
||||
<div class="input-group">
|
||||
<div class="btn-group" role="group">
|
||||
|
Loading…
Reference in New Issue
Block a user