From 929d25c7376fc364c8bf8ea093c00f7f04d562f3 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 1 Aug 2023 16:49:31 +1000 Subject: [PATCH] Fix for another address loop when finding a parent --- app/Models/Address.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Address.php b/app/Models/Address.php index c3ca131..44e0a5c 100644 --- a/app/Models/Address.php +++ b/app/Models/Address.php @@ -279,6 +279,7 @@ class Address extends Model ->where('region_id',$this->region_id) ->where('host_id',$this->host_id) ->where('node_id',0)) + ->where('role','<',$this->role) ->single(); break;