Sfoglia il codice sorgente

[Espace producteurs] Problème abonnements

prodstable
Guillaume Bourgeois 1 anno fa
parent
commit
df4596c455
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +6
    -2
      producer/controllers/SubscriptionController.php

+ 6
- 2
producer/controllers/SubscriptionController.php Vedi File

@@ -104,8 +104,11 @@ class SubscriptionController extends ProducerBaseController
}
}

if ($model->load($posts) && $model->validate()
&& $model->save()) {
if ($model->load($posts)) {

$model->auto_payment = (int) $posts['auto_payment'];

if($model->validate() && $model->save()) {
$subscription = Subscription::searchOne([
'id' => $model->id
]);
@@ -117,6 +120,7 @@ class SubscriptionController extends ProducerBaseController
Yii::$app->getSession()->setFlash('success', 'Abonnement ajouté');
}
}
}
}

/**

Loading…
Annulla
Salva