Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
set duplicated event to draft
Dave Earleyda82754fc670
diff --git a/backend/app/Services/Domain/Event/DuplicateEventService.php b/backend/app/Services/Domain/Event/DuplicateEventService.phpindex cbf157594..8ee07d131 100644--- a/backend/app/Services/Domain/Event/DuplicateEventService.php+++ b/backend/app/Services/Domain/Event/DuplicateEventService.php@@ -6,6 +6,7 @@ use HiEvents\DomainObjects\EventDomainObject;use HiEvents\DomainObjects\EventSettingDomainObject;use HiEvents\DomainObjects\PromoCodeDomainObject;use HiEvents\DomainObjects\QuestionDomainObject;+use HiEvents\DomainObjects\Status\EventStatus;use HiEvents\DomainObjects\TaxAndFeesDomainObject;use HiEvents\DomainObjects\TicketDomainObject;use HiEvents\DomainObjects\TicketPriceDomainObject;@@ -54,7 +55,8 @@ class DuplicateEventService->setTitle($title)->setStartDate($startDate)->setEndDate($endDate)- ->setDescription($description);+ ->setDescription($description)+ ->setStatus(EventStatus::DRAFT->name);$newEvent = $this->cloneExistingEvent(event: $event,