add human-readable studygroup names for CSV headings if option is enabled in admin page
This commit is contained in:
@@ -677,7 +677,7 @@ function booking_csv_report() {
|
||||
}
|
||||
|
||||
//Replace headings for study group sessions and roles with the name of the study group rather than just sessionN and sessionN_role etc
|
||||
if (array_key_exists($key, $studygroup_descriptions)) {
|
||||
if (variable_get('booking_friendly_csv_groupnames','0') == 1 && array_key_exists($key, $studygroup_descriptions)) {
|
||||
$header_array[] = $studygroup_descriptions[$key];
|
||||
continue;
|
||||
}
|
||||
@@ -687,7 +687,7 @@ function booking_csv_report() {
|
||||
if (strcmp($key,"booking_dob") == 0) {
|
||||
$header_array[] = "booking_dob_processed";
|
||||
}
|
||||
|
||||
|
||||
//add in a calculated field for amount owing
|
||||
if (strcmp($key, "nid") == 0) {
|
||||
$header_array[] = "booking_amount_owing_gross";
|
||||
|
Reference in New Issue
Block a user