Browse Source

Merge branch 'dev'

prodstable
Guillaume 4 years ago
parent
commit
af8e8f3a8f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Order.php

+ 1
- 1
common/models/Order.php View File

@@ -137,7 +137,7 @@ class Order extends ActiveRecordCommon
public function getProductOrder()
{
return $this->hasMany(ProductOrder::className(), ['id_order' => 'id'])
->orderBy(['product.order' => SORT_DESC])
->orderBy(['product.order' => SORT_ASC])
->joinWith('product');
}


Loading…
Cancel
Save