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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Eric Imthorn’s picture

A 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';

zuzu83’s picture

Thanks @eric

gavin.hughes’s picture

Version: 7.x-3.16 » 7.x-3.35
Status: Active » Needs review
FileSize
523 bytes

I 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.