? manage_all_vols_2.diff Index: volunteer_timeslots.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/volunteer_timeslots/volunteer_timeslots.module,v retrieving revision 1.11 diff -u -p -r1.11 volunteer_timeslots.module --- volunteer_timeslots.module 11 Sep 2006 03:02:34 -0000 1.11 +++ volunteer_timeslots.module 15 Sep 2006 22:13:30 -0000 @@ -487,6 +487,7 @@ function timeslots_signup_form_submit($f drupal_set_message(t('No changes were made.')); return; } + $all_volunteers = array(); foreach($form_values['timeslot'] as $slot => $data) { $vol = $node->timeslot_data[$slot]['volunteers']; @@ -517,12 +518,12 @@ function timeslots_signup_form_submit($f if (!empty($name)) { $account = user_load(array('name' => $name)); $vol[] = $account->uid; - $node->timeslot_data[0]['all_volunteers'][] = $account->uid; } } $node->timeslot_data[$slot]['volunteers'] = array_unique($vol); + $all_volunteers = array_merge($all_volunteers, $node->timeslot_data[$slot]['volunteers']); } - $node->timeslot_data[0]['all_volunteers'] = array_unique($node->timeslot_data[0]['all_volunteers']); + $node->timeslot_data[0]['all_volunteers'] = array_unique($all_volunteers); $node->revision = TRUE; node_save($node); drupal_set_message(t('Your changes to the schedule were made.'));