From 24f6af3d3b3feab0edee1c9b44c90a2971a88d8d Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 19 Dec 2023 08:54:26 +1100 Subject: [PATCH] Disabling our routine to set a default on an address, it needs to be improved --- app/Http/Controllers/SystemController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/SystemController.php b/app/Http/Controllers/SystemController.php index 1e1c1b1..dee2057 100644 --- a/app/Http/Controllers/SystemController.php +++ b/app/Http/Controllers/SystemController.php @@ -799,11 +799,14 @@ class SystemController extends Controller $zo = Zone::findOrFail($validate['zone_id']); + /* + // @todo Disabling this, it needs improvement. If the new node is the ZC it becomes the default for the zone (and therefore remove all defaults from other addresses in the same zone), otherwise default should be false // If this session is for the ZC, it now becomes the default. if ($o->match($zo,Address::NODE_ZC)->count()) { SystemZone::where('default',TRUE)->update(['default'=>FALSE]); $validate['default'] = TRUE; } + */ $o->sessions()->attach($zo,$validate);