Merge branch 'fronkdev' into 'master'

Fixed cifurl generation in Preorerlogistics

See merge request fronk/thetool!1717
This commit is contained in:
Frank Schubert
2025-09-05 09:50:20 +00:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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();
}