Merge branch 'fronkdev' into 'master'
Fixed cifurl generation in Preorerlogistics See merge request fronk/thetool!1717
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user