瀏覽代碼

Modif TicketUtils (set updatedAt)

feature/export_comptable
Guillaume 4 年之前
父節點
當前提交
a814096813
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      ShopBundle/Services/TicketUtils.php

+ 3
- 1
ShopBundle/Services/TicketUtils.php 查看文件

@@ -72,9 +72,11 @@ class TicketUtils

if(isset($params['closeTicket']) && $params['closeTicket']) {
$ticket->setTicketStatus(Ticket::TICKET_STATUS_CLOSED) ;
$this->em->persist($ticket);
}

$ticket->setUpdatedAt(new \DateTime()) ;
$this->em->persist($ticket);

$this->em->flush() ;

return $ticketMessage ;

Loading…
取消
儲存