Bläddra i källkod

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

feature/module_traiteur_v1
Fab 3 år sedan
förälder
incheckning
9170428434
2 ändrade filer med 13 tillägg och 0 borttagningar
  1. +4
    -0
      ShopBundle/Controller/Backend/NewsController.php
  2. +9
    -0
      ShopBundle/Services/Utils.php

+ 4
- 0
ShopBundle/Controller/Backend/NewsController.php Visa fil

@@ -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 Visa fil

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

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


}

Laddar…
Avbryt
Spara