소스 검색

TicketFactory : correctif init section et merchant

packProduct
Guillaume 2 년 전
부모
커밋
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…
취소
저장