add indexes, add messagedetsta
This commit is contained in:
@@ -15,6 +15,7 @@ use common\models\User;
|
||||
use common\models\Customer;
|
||||
use common\models\Card;
|
||||
use backend\models\TicketSearchStatisitcs;
|
||||
use backend\models\TicketSearchCustomer;
|
||||
|
||||
/**
|
||||
* TicketController implements the CRUD actions for Ticket model.
|
||||
@@ -128,7 +129,7 @@ class TicketController extends \backend\controllers\BackendController {
|
||||
throw new NotFoundHttpException ( 'The requested page does not exist.' );
|
||||
}
|
||||
|
||||
$searchModel = new TicketSearch ();
|
||||
$searchModel = new TicketSearchCustomer(['customer' => $customer]);
|
||||
$searchModel->id_card = $customer->id_customer_card;
|
||||
$dataProvider = $searchModel->search ( Yii::$app->request->queryParams );
|
||||
$searchModel->searchTotals ();
|
||||
|
||||
Reference in New Issue
Block a user