Sfoglia il codice sorgente

[backend] Mail aux producteurs : seulement les producteurs ayant un espace en ligne

dev
parent
commit
ee0fb8bb96
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      backend/controllers/CommunicateAdminController.php

+ 1
- 1
backend/controllers/CommunicateAdminController.php Vedi File

@@ -80,7 +80,7 @@ class CommunicateAdminController extends BackendController
public function actionIndex($section = 'producers')
{
if($section == 'producers') {
$producers = Producer::find()->with(['contact'])->all() ;
$producers = Producer::find()->where(['producer.active' => 1])->with(['contact'])->all() ;
$usersArray = [];
$users = [] ;
foreach ($producers as $producer) {

Loading…
Annulla
Salva