Started fiddling with CancelRSVP but more must be done

Remember to make event_uri be the selector for CancelRSVPForm and
preferrably even merge it into RSVPForm!
This commit is contained in:
Mikael Nordfeldth
2016-01-19 01:41:06 +01:00
parent 477d71c0bf
commit 80dc2788dd
3 changed files with 19 additions and 128 deletions

View File

@@ -49,7 +49,7 @@ class CancelRSVPForm extends Form
parent::__construct($out);
if (!isset($formOpts['rsvp'])) {
throw new ServerException('You must set the "rsvp" form option for RSVPForm.');
} elseif (!$formOpts['rsvp'] instanceof Happening) {
} elseif (!$formOpts['rsvp'] instanceof RSVP) {
throw new ServerException('The "rsvp" form option for RSVPForm must be an RSVP object.');
}
$this->rsvp = $formOpts['rsvp'];