瀏覽代碼

Merge branch 'dev'

master
Guillaume 3 年之前
父節點
當前提交
c757dd151a
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. +8
    -1
      backend/controllers/ProductController.php

+ 8
- 1
backend/controllers/ProductController.php 查看文件

@@ -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()) {

Loading…
取消
儲存