minor tweaks
This commit is contained in:
@@ -225,7 +225,7 @@ function booking_roomnum_ajax_callback($form, $form_state) {
|
|||||||
* Function to return the updated form element booking_room_bedtype for booking_room_edit_form()
|
* Function to return the updated form element booking_room_bedtype for booking_room_edit_form()
|
||||||
*/
|
*/
|
||||||
function booking_bedtype_ajax_callback($form, $form_state) {
|
function booking_bedtype_ajax_callback($form, $form_state) {
|
||||||
watchdog('booking', "<pre>Room Edit ajax callback:\n@info</pre>", array('@info' => print_r( $form, true)));
|
//watchdog('booking', "<pre>Room Edit ajax callback:\n@info</pre>", array('@info' => print_r( $form, true)));
|
||||||
return $form['form']['booking_room_bedtype'];
|
return $form['form']['booking_room_bedtype'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,8 +361,8 @@ function booking_room_edit_form_submit($form, &$form_state) {
|
|||||||
//this person already exists in mapping table
|
//this person already exists in mapping table
|
||||||
if ($check)
|
if ($check)
|
||||||
{
|
{
|
||||||
$message = t("Updating person id !nid to room id !id with bedtype !type",
|
$message = t("Updating person id !nid to room id !id with bed type !type.",
|
||||||
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => $values['booking_room_bedtype'],
|
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => _booking_room_bedtype_lookup($values['booking_room_bedtype']),
|
||||||
'!number' => $values['booking_room_number'])
|
'!number' => $values['booking_room_number'])
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -375,13 +375,13 @@ function booking_room_edit_form_submit($form, &$form_state) {
|
|||||||
->condition('booking_eventid', $event->eid)
|
->condition('booking_eventid', $event->eid)
|
||||||
->condition('booking_nodeid', $values['personid'])
|
->condition('booking_nodeid', $values['personid'])
|
||||||
->execute();
|
->execute();
|
||||||
//drupal_set_message("Successfully updated " . $result . " row(s) in the room allocation table.", $type = 'status');
|
|
||||||
}
|
}
|
||||||
//create a new record in the mapping table
|
//create a new record in the mapping table
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$message = t("Allocating person id !nid to room id !id with bedtype !type",
|
$message = t("Allocating person id !nid to room id !id with bed type !type.",
|
||||||
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => $values['booking_room_bedtype'],
|
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => _booking_room_bedtype_lookup($values['booking_room_bedtype']),
|
||||||
'!number' => $values['booking_room_number'])
|
'!number' => $values['booking_room_number'])
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -394,7 +394,7 @@ function booking_room_edit_form_submit($form, &$form_state) {
|
|||||||
'booking_room_bedtype' => $values['booking_room_bedtype'],
|
'booking_room_bedtype' => $values['booking_room_bedtype'],
|
||||||
))
|
))
|
||||||
->execute();
|
->execute();
|
||||||
//drupal_set_message("Successfully added id " . $values['personid'] . " to the room allocation table.", $type = 'status');
|
|
||||||
}
|
}
|
||||||
watchdog('booking', $message);
|
watchdog('booking', $message);
|
||||||
drupal_set_message($message, 'status', FALSE);
|
drupal_set_message($message, 'status', FALSE);
|
||||||
|
Reference in New Issue
Block a user