Browse Source

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

feature/module_traiteur_v1
Fab 4 years ago
parent
commit
9170428434
2 changed files with 13 additions and 0 deletions
  1. +4
    -0
      ShopBundle/Controller/Backend/NewsController.php
  2. +9
    -0
      ShopBundle/Services/Utils.php

+ 4
- 0
ShopBundle/Controller/Backend/NewsController.php View File

@@ -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 View File

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

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


}

Loading…
Cancel
Save