remove pass by reference call
This commit is contained in:
@@ -185,7 +185,7 @@ function booking_rooms_allocate_test_form_submit($form, &$form_state) {
|
|||||||
{
|
{
|
||||||
//check for previous value
|
//check for previous value
|
||||||
$previous_nid = 0;
|
$previous_nid = 0;
|
||||||
$previous_nid = _booking_rooms_allocate_get_previous_value(&$form, $type, $room, $type . '[' . $room . '][' . $bed_index . ']');
|
$previous_nid = _booking_rooms_allocate_get_previous_value($form, $type, $room, $type . '[' . $room . '][' . $bed_index . ']');
|
||||||
|
|
||||||
if (! empty($person)) {
|
if (! empty($person)) {
|
||||||
//extract nid from $person using regex
|
//extract nid from $person using regex
|
||||||
@@ -194,7 +194,7 @@ function booking_rooms_allocate_test_form_submit($form, &$form_state) {
|
|||||||
$nid = $matches[1];
|
$nid = $matches[1];
|
||||||
|
|
||||||
//handle the insert/update/deletes required
|
//handle the insert/update/deletes required
|
||||||
_booking_rooms_allocate_test_form_submit_helper(&$room_mapping, $room, $type_id, $bed_index, $nid, $previous_nid);
|
_booking_rooms_allocate_test_form_submit_helper($room_mapping, $room, $type_id, $bed_index, $nid, $previous_nid);
|
||||||
|
|
||||||
} //parsed node id successfully
|
} //parsed node id successfully
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user