added fcps to preorder map

This commit is contained in:
Luca Haid
2025-04-02 09:37:24 +02:00
parent 68f6666ca6
commit 53b5f7289e
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1094,7 +1094,7 @@ class PreorderController extends mfBaseController {
if (!$campaign->id) return [];
return array_map(
fn($fcp) => ["id" => $fcp->name ?? null, "text" => $fcp->name ?? null],
fn($fcp) => ["id" => $fcp->name ?? null, "text" => $fcp->name ?? null, 'lat' => $fcp->gps_lat ?? null, 'lng' => $fcp->gps_long ?? null],
ADBRimoFcp::getAll(["netzgebiet_id" => $campaign->network->adb_netzgebiet_id]) ?? []
);
}