Ver código fonte

Merge branch 'dev'

prodstable
Guillaume 4 anos atrás
pai
commit
8f4c57715a
2 arquivos alterados com 4 adições e 1 exclusões
  1. +2
    -0
      backend/controllers/DocumentController.php
  2. +2
    -1
      common/models/Order.php

+ 2
- 0
backend/controllers/DocumentController.php Ver arquivo

@@ -556,6 +556,8 @@ class DocumentController extends BackendController

$model = $class::searchOne([
'id' => $id
], [
'orderby' => 'teshtygjhtyt'
]);

if ($model) {

+ 2
- 1
common/models/Order.php Ver arquivo

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

public function getDistribution()

Carregando…
Cancelar
Salvar