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

@@ -357,6 +357,7 @@ class ProductController extends BackendController
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
$product = $this->findModel($id);
$product->active = (int) $active;
$product->save();

Distribution::linkProductIncomingDistributions($product);


Loading…
Cancel
Save