add contest select to cbr import

This commit is contained in:
DB4SCW
2024-11-27 09:18:29 +00:00
parent b8e0ff1550
commit b3989b3b2a
2 changed files with 14 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ class Cabrillo extends CI_Controller {
}
//get data from upload
$contest_id = $this->input->post('contest_id', false) ?? '';
$data = array('upload_data' => $this->upload->data());
//set memory limit to allow big files
@@ -213,6 +214,11 @@ class Cabrillo extends CI_Controller {
array_push($station_ids, $station->station_id);
}
//overwrite contest id if chosen during upload
if($contest_id != ''){
$parsed_cbr["HEADER"]["CONTEST"] = $contest_id;
}
//create helper variables
$custom_errors = [];
$i = 1;