|
|
@@ -117,7 +117,9 @@ class SubscriptionController extends BackendController |
|
|
|
} |
|
|
|
|
|
|
|
// produits |
|
|
|
$productsArray = Product::searchAll() ; |
|
|
|
$productsArray = Product::searchAll([], [ |
|
|
|
'orderby' => 'product.order ASC' |
|
|
|
]) ; |
|
|
|
|
|
|
|
if ($model->load(Yii::$app->request->post()) && $model->validate() |
|
|
|
&& $model->save()) |
|
|
@@ -191,7 +193,9 @@ class SubscriptionController extends BackendController |
|
|
|
} |
|
|
|
|
|
|
|
// produits |
|
|
|
$productsArray = Product::searchAll() ; |
|
|
|
$productsArray = Product::searchAll([], [ |
|
|
|
'orderby' => 'product.order ASC' |
|
|
|
]) ; |
|
|
|
|
|
|
|
if ($model->load(Yii::$app->request->post()) && $model->validate()) { |
|
|
|
if (!strlen($model->date_end)) { |
|
|
@@ -270,7 +274,7 @@ class SubscriptionController extends BackendController |
|
|
|
}]) ; |
|
|
|
} |
|
|
|
|
|
|
|
$productsArray = $productsQuery->asArray()->all() ; |
|
|
|
$productsArray = $productsQuery->asArray()->orderBy('order ASC')->all() ; |
|
|
|
|
|
|
|
foreach($productsArray as &$theProduct) { |
|
|
|
$theProduct['unit_save'] = $theProduct['unit'] ; |