Pārlūkot izejas kodu

[Global] Correctifs newsletter désinscription + Bon de commande ligne vide

feature/module_traiteur_v1
Fab pirms 3 gadiem
vecāks
revīzija
9170428434
2 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      ShopBundle/Controller/Backend/NewsController.php
  2. +9
    -0
      ShopBundle/Services/Utils.php

+ 4
- 0
ShopBundle/Controller/Backend/NewsController.php Parādīt failu

@@ -81,7 +81,10 @@ class NewsController extends AdminController
] ;

$i = 0 ;

foreach ($users as $user) {
$paramsTemplate['user'] =$user;

if(!isset($packageMessagesArray[$i])) {
$packageMessagesArray[$i] = [] ;
}
@@ -142,6 +145,7 @@ class NewsController extends AdminController
public function getNewsletter()
{
$newsletter = $this->merchantUtils->getMerchantCurrent()->getNewsletter() ;

if($newsletter) {
return $newsletter ;
}

+ 9
- 0
ShopBundle/Services/Utils.php Parādīt failu

@@ -559,4 +559,13 @@ class Utils
]);
}

public function urlEncryptData($datas){
$key = 'secretToken';
foreach ($datas as $data) {
$key .= $data;
}
return md5($key);
}


}

Notiek ielāde…
Atcelt
Saglabāt