Skip to content

Commit

Permalink
Access denied on editing a booking (#144)
Browse files Browse the repository at this point in the history
* Access denied on editing a booking

* Fix tests
  • Loading branch information
salvoscala authored Apr 7, 2017
1 parent 6c1ee51 commit a266185
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1861,6 +1861,9 @@ function roomify_accommodation_booking_form_alter(&$form, &$form_state, $form_id
$form_state['input']['booking_price'][LANGUAGE_NONE][0]['amount'] = round($price / 100, 2);
}
}
if (isset($form['actions']['cancel'])) {
$form['actions']['cancel']['#markup'] = l(t('Cancel'), 'user');
}
}
if ($form['#entity_type'] == 'bat_booking' && $form['#bundle'] == 'booking_com' &&
($form_id == 'bat_booking_form' || $form_id == 'bat_booking_edit_form' || $form_id == 'bat_booking_edit_booking_com_form')) {
Expand Down

0 comments on commit a266185

Please sign in to comment.