Room allocation tweaks
This commit is contained in:
@@ -423,6 +423,22 @@ function booking_rooms_allocate_form_submit($form, &$form_state) {
|
|||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
elseif ((!empty($room_mapping[$nid])) && $room_mapping[$nid]->booking_room_bedtype != $type_id)
|
||||||
|
{
|
||||||
|
drupal_set_message(t('Changing person id !id in room !room to new bed type type !type .',
|
||||||
|
array('!id' => $nid, '!room' => $room, '!type' => $type_id, '!oldroom' => $room_mapping[$nid]->booking_roomid)));
|
||||||
|
|
||||||
|
db_update('booking_room_mapping')
|
||||||
|
->fields(array(
|
||||||
|
'booking_roomid' => $room,
|
||||||
|
'booking_room_bedtype' => $type_id,
|
||||||
|
))
|
||||||
|
->condition('booking_eventid', $event->eid)
|
||||||
|
->condition('booking_nodeid', $nid)
|
||||||
|
->execute();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//drupal_set_message(t('Person id !id already has some other room allocation.',
|
//drupal_set_message(t('Person id !id already has some other room allocation.',
|
||||||
|
Reference in New Issue
Block a user