From 941f7b480e7ff2d4a4aa0dc0d375a497ffa7bf0f Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 1 Dec 2024 21:52:37 +1100 Subject: [PATCH] Fix creation of Region Address AKA for a system --- app/Http/Requests/AddressAdd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/AddressAdd.php b/app/Http/Requests/AddressAdd.php index 313db18..b4f46fe 100644 --- a/app/Http/Requests/AddressAdd.php +++ b/app/Http/Requests/AddressAdd.php @@ -76,7 +76,7 @@ class AddressAdd extends FormRequest $query ->where('region_id',$value) // Check that a host doesnt already exist - ->orWhere('host_id',$value) + ->where('host_id',$value) ) ->where('zone_id',$request->zone_id) ->where('node_id',0)