Changeset 12566


Ignore:
Timestamp:
2006-08-25T14:45:30+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added fix for warnings when submitting to a new file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gti.pl

    r12484 r12566  
    524524    foreach my $chunk_key (keys(%target_file_key_to_submission_mapping)) {
    525525    # Only apply the submission if it is a change, unless -force_submission has been specified
    526     if ($force_submission_flag || $target_file_key_to_submission_mapping{$chunk_key} ne $target_file_key_to_text_mapping{$chunk_key}) {
     526    if ($force_submission_flag || !defined($target_file_key_to_text_mapping{$chunk_key}) || $target_file_key_to_submission_mapping{$chunk_key} ne $target_file_key_to_text_mapping{$chunk_key}) {
    527527        $target_file_key_to_text_mapping{$chunk_key} = $target_file_key_to_submission_mapping{$chunk_key};
    528528        $target_file_key_to_gti_comment_mapping{$chunk_key} = "Updated $submission_date by $submitter_username";
Note: See TracChangeset for help on using the changeset viewer.