diff --git a/booking.import_data.inc b/booking.import_data.inc index 82494df..9d50bc8 100644 --- a/booking.import_data.inc +++ b/booking.import_data.inc @@ -10,9 +10,10 @@ function booking_import_data_admin($form, &$form_state) global $event; $form = array(); - $prefix = t("
Upload csv file containing data to import. Minimum fields present should be nid, " . + $prefix = t("
Upload csv file containing data to import. Minimum fields present should be nid or booking_tempid, " . " along with fields specified below. CSV Column names should match exactly (case sensitive).
"); - $prefix .= "Note that only registration specific data like phone numbers, barcodes, etc can be updated, as well as study group membership and roles. Other data like room allocations cannot be uploaded at this time.
"; + $prefix .= "Note that only registration specific data like phone numbers, barcodes, etc can be updated. Other data like room allocations cannot be uploaded at this time.
"; + $prefix .= "Also note that updating study group membership and roles requires nid to be present in the input file.
"; $form['file'] = array( '#type' => 'file', @@ -204,7 +205,7 @@ function booking_import_data_admin_submit($form, &$form_state) array('@info' => (string) $query, '@nid' => $record[$key], '@rows' => $rows, '@values' => print_r( $update_array, true) )); } - //handle study group processing + //handle study group processing only if the node id was used as a key if ($key == 'nid') { $update_text .= _booking_import_studygroup_info($record['nid'], $studygroups_update_array, $studygroup_roles_update_array); drupal_set_message(t("Updating record !nid as follows: !update", array('!nid' => $record['nid'], '!update' => $update_text)));