From 758024f4906c6091315ad6b7b58a38df6fb19120 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Fri, 5 Sep 2025 11:49:33 +0200 Subject: [PATCH] Fixed cifurl generation in Preorerlogistics --- application/Preorder/Preorder.php | 2 +- .../Preorderlogistics/PreorderlogisticsController.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Preorder/Preorder.php b/application/Preorder/Preorder.php index 87942b1be..8406b36c4 100644 --- a/application/Preorder/Preorder.php +++ b/application/Preorder/Preorder.php @@ -1125,7 +1125,7 @@ class Preorder extends mfBaseModel { $campaign = $this->getProperty("campaign"); $cifcableurl = $campaign->cifcableurl; - str_replace("{{}}", $this->ciftoken, $cifcableurl); + str_replace("{{CIFTOKEN}}", $this->ciftoken, $cifcableurl); return $cifcableurl; } diff --git a/application/Preorderlogistics/PreorderlogisticsController.php b/application/Preorderlogistics/PreorderlogisticsController.php index b53c2d262..767e019eb 100644 --- a/application/Preorderlogistics/PreorderlogisticsController.php +++ b/application/Preorderlogistics/PreorderlogisticsController.php @@ -209,12 +209,12 @@ class PreorderlogisticsController extends mfBaseController { */ if(!$preorder->ciftoken) { $preorder->createCiftoken(); - $preorder->cifurl = "https://pro.ichwillglasfaser.at/ClientSubmit/finishedInstallationWork?c=".$preorder->ciftoken; + $preorder->generateCifUrl(); $preorder->save(); } - + if(!$preorder->cifcableurl) { - $preorder->cifcableurl = "https://www.deineglasfaser.at/kundinnen/leerrohr-nachbestellung/"; + $preorder->generateCifCableUrl(); $preorder->save(); }