added leader and helpers field to camp

This commit is contained in:
Ricsi
2017-06-16 21:46:31 +02:00
parent f0d4bb9e7a
commit b85da38e8a
5 changed files with 65 additions and 6 deletions

View File

@@ -360,7 +360,7 @@ if (isset($_POST['action'])) {
$accoms = $_POST['accomodations'];
}
camp::create_camp($_POST['camp_city'], $_POST['camp_from'], $_POST['camp_to'], (!empty($_POST['camp_is_open'])?1:0), $_POST['camp_camp_type_ct_id'], $shuttles, $accoms);
camp::create_camp($_POST['camp_city'], $_POST['camp_from'], $_POST['camp_to'], $_POST['camp_leader'], $_POST['camp_helpers'], (!empty($_POST['camp_is_open'])?1:0), $_POST['camp_camp_type_ct_id'], $shuttles, $accoms);
log::register('new_camp', $_POST['camp_from'] . " (" . $_POST['camp_city'] . ")");
break;
case 'camp_update':
@@ -375,7 +375,7 @@ if (isset($_POST['action'])) {
$accoms = $_POST['accomodations'];
}
camp::update_camp($_POST['camp_city'], $_POST['camp_from'], $_POST['camp_to'], (!empty($_POST['camp_is_open'])?1:0), $_POST['camp_camp_type_ct_id'], $shuttles, $accoms, $_POST['camp_id']);
camp::update_camp($_POST['camp_city'], $_POST['camp_from'], $_POST['camp_to'], $_POST['camp_leader'], $_POST['camp_helpers'], (!empty($_POST['camp_is_open'])?1:0), $_POST['camp_camp_type_ct_id'], $shuttles, $accoms, $_POST['camp_id']);
log::register('update_camp', $_POST['camp_from'] . " (" . $_POST['camp_city'] . ")");
header('Location: /admin/camps/' . $_POST['camp_id']);