瀏覽代碼

TicketFactory : correctif init section et merchant

packProduct
Guillaume 3 年之前
父節點
當前提交
2698448306
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      Factory/Ticket/TicketFactory.php

+ 3
- 2
Factory/Ticket/TicketFactory.php 查看文件

@@ -16,13 +16,14 @@ class TicketFactory extends SovTicketFactory
{
$ticket = parent::create();

if(!is_null($this->section)) {
if(isset($this->section) && !is_null($this->section)) {
$ticket->setSection($this->section);
}

if(!is_null($this->merchant)) {
if(isset($this->merchant) && !is_null($this->merchant)) {
$ticket->setMerchant($this->merchant);
}

return $ticket;
}
}

Loading…
取消
儲存