Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I create a new event on a clean Drupal Commons installation and I set the "Maximum number of attendees" to a number different than the default and save,
that number isn't saved to the Capacity field in Manage Registrations > Settings so I can still register more than I set.
Clearing the cache does nothing, but if I save the node a second time (without changing anything) the int gets updated. After that, it works like it should, so it's just the initial saving.
Comment | File | Size | Author |
---|---|---|---|
#3 | D7-commons-events-registration-attendee-2315729.patch | 523 bytes | gavin.hughes |
Schermafbeelding 2014-08-05 om 13.26.12.png | 50.89 KB | Eric Imthorn | |
Schermafbeelding 2014-08-05 om 13.25.56.png | 72.08 KB | Eric Imthorn |
Comments
Comment #1
Eric Imthorn CreditAttribution: Eric Imthorn commentedA possible solution is to change commons_events.module line 336
from
$form['#submit'][] = 'commons_events_node_form_submit';
to
$form['actions']['submit']['#submit'][] = 'commons_events_node_form_submit';
Comment #2
zuzu83 CreditAttribution: zuzu83 commentedThanks @eric
Comment #3
gavin.hughes CreditAttribution: gavin.hughes at Annertech commentedI noticed this issue applies in 3.35 I tested the suggestion in #1 and can confirm it works. I made a patch for the fix and i'm attaching that here.