Browse Source

[Distributions] Produits > liste : test fonctionnalité toggle active #673

refactoring
Guillaume Bourgeois 2 years ago
parent
commit
a5a8c780ef
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      backend/controllers/ProductController.php

+ 1
- 0
backend/controllers/ProductController.php View File

\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
$product = $this->findModel($id); $product = $this->findModel($id);
$product->active = (int) $active; $product->active = (int) $active;
$product->save();


Distribution::linkProductIncomingDistributions($product); Distribution::linkProductIncomingDistributions($product);



Loading…
Cancel
Save