Ver código fonte

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

refactoring
Guillaume Bourgeois 2 anos atrás
pai
commit
a5a8c780ef
1 arquivos alterados com 1 adições e 0 exclusões
  1. +1
    -0
      backend/controllers/ProductController.php

+ 1
- 0
backend/controllers/ProductController.php Ver arquivo

@@ -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);


Carregando…
Cancelar
Salvar