Sfoglia il codice sorgente

Merge branch 'dev'

master
Guillaume 3 anni fa
parent
commit
c757dd151a
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. +8
    -1
      backend/controllers/ProductController.php

+ 8
- 1
backend/controllers/ProductController.php Vedi File

@@ -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…
Annulla
Salva