Merge branch 'RimoFCP/integrate' into 'master'

added fcps to preorder map

See merge request fronk/thetool!1161
This commit is contained in:
Luca Haid
2025-04-02 07:38:03 +00:00
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]) ?? []
);
}