in registration_form_validate(), the check for whether capacity has been reached does not prevent the user from creating a registration if the host entity is already full.

  if (!registration_has_room($registration->entity_type, $registration->entity_id, $count)) {
    drupal_set_message(t('Sorry, there are insufficient slots remaining for this event.'));
  }

to

  if (!registration_has_room($registration->entity_type, $registration->entity_id, $count)) {
    form_set_error('', t('Sorry, there are insufficient slots remaining for this event.'));
  }

Comments

levelos’s picture

Status: Active » Fixed

Good catch @dpi, thx.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

spelin'

  • levelos committed 9952ee7 on 7.x-1.x, panels, any-entity, slots, integrations, hold_state authored by dpi
    #1542362 by dpi: Users can register despite capacity reaching limit.