@@ -108,10 +108,17 @@ class ProductController extends BackendController | |||
public function actionCreate() | |||
{ | |||
$model = new Product(); | |||
$model->active = 1; | |||
$model->id_producer = GlobalParam::getCurrentProducerId(); | |||
$model->monday = 1 ; | |||
$model->tuesday = 1 ; | |||
$model->wednesday = 1 ; | |||
$model->thursday = 1 ; | |||
$model->friday = 1 ; | |||
$model->saturday = 1 ; | |||
$model->sunday = 1 ; | |||
if ($model->load(Yii::$app->request->post()) && $model->save()) { | |||