From 7f144c342059b8189d3a0ad524f10e4075cf0449 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 29 Jul 2023 20:16:54 +1000 Subject: [PATCH] Fix zone presented for echoarea/filearea subscription --- resources/views/system/form-echoarea.blade.php | 2 +- resources/views/system/form-filearea.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/system/form-echoarea.blade.php b/resources/views/system/form-echoarea.blade.php index 9d7aa90..9c44ab5 100644 --- a/resources/views/system/form-echoarea.blade.php +++ b/resources/views/system/form-echoarea.blade.php @@ -1,7 +1,7 @@ @if(($x=\App\Models\Domain::active() ->select('domains.*') ->join('zones',['zones.domain_id'=>'domains.id']) - ->whereIn('zone_id',$o->sessions->pluck('zone_id')) + ->whereIn('zones.id',$o->sessions->pluck('pivot.zone_id')) ->get())->count())
diff --git a/resources/views/system/form-filearea.blade.php b/resources/views/system/form-filearea.blade.php index 52eac97..22e228e 100644 --- a/resources/views/system/form-filearea.blade.php +++ b/resources/views/system/form-filearea.blade.php @@ -1,7 +1,7 @@ @if(($x=\App\Models\Domain::active() ->select('domains.*') ->join('zones',['zones.domain_id'=>'domains.id']) - ->whereIn('zone_id',$o->sessions->pluck('zone_id')) + ->whereIn('zones.id',$o->sessions->pluck('pivot.zone_id')) ->get())->count())