@@ -357,6 +357,9 @@ class ProductController extends BackendController | |||
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; | |||
$product = $this->findModel($id); | |||
$product->active = (int) $active; | |||
Distribution::linkProductIncomingDistributions($product); | |||
return ['success', 'id' => $id, 'active' => $active]; | |||
} | |||