add indexes, add messagedetsta

This commit is contained in:
2016-01-29 17:13:33 +01:00
parent ad59cbb940
commit a00331ce7c
65 changed files with 3195 additions and 92 deletions

View File

@@ -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 ();