瀏覽代碼

Correctif : bug date Commande::findBy()

master
keun 7 年之前
父節點
當前提交
180defa946
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      common/models/Commande.php

+ 1
- 1
common/models/Commande.php 查看文件

@@ -362,7 +362,7 @@ class Commande extends \yii\db\ActiveRecord
if(isset($params['date']))
$commandes = $commandes->where(['production.date' => $date]);
$commandes = $commandes->where(['production.date' => $params['date']]);
if(isset($params['order']))
$commandes = $commandes->orderBy('date '.$params['order']);

Loading…
取消
儲存