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