Use getName static method for NameValue values #32
This commit is contained in:
parent
6d78c37435
commit
5cb38e8907
1 changed files with 2 additions and 5 deletions
|
|
@ -85,9 +85,6 @@ class TicketController extends BaseController
|
|||
->getQuery()
|
||||
->getResult();
|
||||
|
||||
$ticket_statuses = TicketStatus::getCollection();
|
||||
$ticket_types = TicketType::getCollection();
|
||||
|
||||
// process rows
|
||||
$rows = [];
|
||||
foreach ($obj_rows as $orow) {
|
||||
|
|
@ -98,8 +95,8 @@ class TicketController extends BaseController
|
|||
$row['first_name'] = $orow->getFirstName();
|
||||
$row['last_name'] = $orow->getLastName();
|
||||
$row['contact_num'] = $orow->getContactNumber();
|
||||
$row['status'] = $ticket_statuses[$orow->getStatus()];
|
||||
$row['ticket_type'] = $ticket_types[$orow->getTicketType()];
|
||||
$row['status'] = TicketStatus::getName($orow->getStatus());
|
||||
$row['ticket_type'] = TicketType::getName($orow->getTicketType());
|
||||
$row['plate_number'] = $orow->getPlateNumber();
|
||||
|
||||
// add row metadata
|
||||
|
|
|
|||
Loading…
Reference in a new issue