Parcourir la source

TicketFactory : correctif init section et merchant

packProduct
Guillaume il y a 2 ans
Parent
révision
2698448306
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. +3
    -2
      Factory/Ticket/TicketFactory.php

+ 3
- 2
Factory/Ticket/TicketFactory.php Voir le fichier

@@ -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;
}
}

Chargement…
Annuler
Enregistrer