diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index 94a72bece..dc62f6a68 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -43,7 +43,7 @@ class StructureController extends Controller //Get a list of structures $structures = StructureIndustryTaxJournal::select('context_id') - ->whereBetween('date', [$date[0]['start'], $date[0]['end']]) + ->whereBetween('date', [$dates[0]['start'], $dates[0]['end']]) ->groupBy('context_id') ->get();