debugging
This commit is contained in:
@@ -373,7 +373,8 @@ function booking_studygroup_leadhelp_edit_form_submit($form, &$form_state) {
|
||||
foreach ($values[$type] as $session_id => $person) {
|
||||
//get the previous value
|
||||
$previous_value = _booking_studygroup_leadhelp_edit_get_previous_value($form, $type, $type . '[' . $session_id . ']');
|
||||
watchdog('booking_debug', "<pre>Studygroup assignment previous value:\n@info</pre>", array('@info' => print_r( $previous_value, true)));
|
||||
watchdog('booking_debug', "<pre>Studygroup assignment previous value:\n@info\nCurrent value:\n@current</pre>",
|
||||
array('@info' => print_r( $previous_value, true), '@current' => print_r( $person, true)));
|
||||
//compare it against $person
|
||||
//if $person is now empty, do a delete query
|
||||
//if $person is now different, run an update query
|
||||
|
Reference in New Issue
Block a user