Sfoglia il codice sorgente

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

refactoring
Guillaume Bourgeois 2 anni fa
parent
commit
a5a8c780ef
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      backend/controllers/ProductController.php

+ 1
- 0
backend/controllers/ProductController.php Vedi 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…
Annulla
Salva