Browse Source

Merge branch 'dev'

prodstable
Guillaume 2 years ago
parent
commit
b2e2e2dcd8
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      backend/controllers/CronController.php

+ 3
- 2
backend/controllers/CronController.php View File

@@ -229,8 +229,7 @@ class CronController extends BackendController
'orders' => $arrayOrders
]
)
->setFrom([Yii::$app->params['adminEmail'] => 'distrib'])
->setSubject($subject);;
->setFrom([Yii::$app->params['adminEmail'] => 'distrib']);

if (is_array($arrayOrders) && count($arrayOrders)) {
$subject = '[distrib] Commandes du ' . date('d/m', strtotime($date));
@@ -249,6 +248,8 @@ class CronController extends BackendController
$subject = '[distrib] Aucune commande';
}

$mail->setSubject($subject);

// envoi des emails à tous les comptes users (statut producer) associés à ce producteur
$userArray = User::searchAll([
'id_producer' => $producer->id,

Loading…
Cancel
Save