added code to reset rsvp templates

attributes when user set up
external RSVP link.

Change-Id: Id9438901d768f80bcc527ae4016211e3549f5229
This commit is contained in:
Sebastian Marcet 2018-04-10 12:08:14 -03:00
parent 168b450002
commit db196e53a6
2 changed files with 5 additions and 2 deletions

View File

@ -418,6 +418,8 @@ class SummitEvent extends SilverstripeBaseModel
{
$this->rsvp_link = $rsvp_link;
$this->rsvp_template = null;
$this->rsvp_max_user_wait_list_number = 0;
$this->rsvp_max_user_number = 0;
}
/**

View File

@ -687,8 +687,9 @@ final class SummitService extends AbstractService implements ISummitService
throw new ValidationException("rsvp_link and rsvp_template_id are both set, you need to especify only one");
}
if (isset($data['rsvp_link']))
$event->setRsvpLink(html_entity_decode(trim($data['rsvp_link'])));
if (isset($data['rsvp_link'])) {
$event->setRSVPLink(html_entity_decode(trim($data['rsvp_link'])));
}
if (isset($data['rsvp_template_id'])) {