Browse Source

Adaptations producer/site/bookmarks

dev
Guillaume Bourgeois 6 years ago
parent
commit
315057ba32
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      producer/controllers/SiteController.php

+ 2
- 2
producer/controllers/SiteController.php View File

@@ -172,10 +172,10 @@ class SiteController extends ProducerBaseController
Yii::$app->session->setFlash('success','Le producteur <strong>'.Html::encode($producer->name).'</strong> vient d\'être ajouté à vos favoris.') ;
}
else {
$user_etablissement->bookmark = 0 ;
$userProducer->bookmark = 0 ;
Yii::$app->session->setFlash('success','Le producteur <strong>'.Html::encode($producer->name).'</strong> vient d\'être supprimé de vos favoris.') ;
}
$user_etablissement->save() ;
$userProducer->save() ;
}
$this->redirect(['site/index']) ;

Loading…
Cancel
Save