Setting event price to active now updates event id for that price
This commit is contained in:
@@ -77,7 +77,7 @@ function booking_price_admin()
|
||||
}
|
||||
|
||||
function booking_price_admin_submit($form, &$form_state) {
|
||||
|
||||
global $event;
|
||||
$checkboxes = $form_state['values']['table']; //$values['booking_price_active'];
|
||||
//watchdog('booking', 'Formstate when setting buttons: @info', array ('@info' => var_export($form_state['values'], TRUE)));
|
||||
|
||||
@@ -94,6 +94,7 @@ function booking_price_admin_submit($form, &$form_state) {
|
||||
|
||||
db_update('booking_price')
|
||||
->fields(array (
|
||||
'booking_eventid' => $event->eid,
|
||||
'booking_price_active' => $setting,
|
||||
))
|
||||
->condition('pid', $key)
|
||||
|
Reference in New Issue
Block a user