Skip to content

Commit

Permalink
Fix option identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
acrollet committed May 3, 2018
1 parent 86d2b9d commit 6681d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rooms_views.module
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function rooms_views_booking_button_form($form, &$form_state, $start_date, $end_
$unit = rooms_unit_load($unit_id);

foreach (rooms_unit_get_unit_options($unit) as $option) {
$option_name = strtolower(str_replace(array(':', ' '), '_', $option['name']));
$option_name = rooms_options_machine_name($option['name']);
$form['options'][$option_name] = array(
'#type' => 'checkbox',
'#title' => $option['name'],
Expand Down

0 comments on commit 6681d3a

Please sign in to comment.