Changeset 37734 for main


Ignore:
Timestamp:
2023-05-04T12:03:34+12:00 (12 months ago)
Author:
davidb
Message:

Fix for when the first ever file-level doc version history action is applied to a document

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cgiactions/modmetadataaction.pm

    r37591 r37734  
    31733173   
    31743174    ## shuffle all the nminus-<n> folders down by one
    3175 
    31763175   
    31773176    foreach my $nminus_n (@sorted_fldv_filtered_dirs) {
     
    32003199    }
    32013200    }
    3202 
     3201    else {
     3202    # first time asked to perform the inc-nminus-1 action for this doc,
     3203    #  and there is not yet even a _fldv directory!
     3204    # => make the directory (and that's all that's needed at this stage)
     3205    print STDERR "First time file-level document-version history has been applied to this document\n";
     3206    print STDERR "Creating $fldv_full_dirname\n";
     3207   
     3208    &FileUtils::makeDirectory($fldv_full_dirname);
     3209    }
     3210   
    32033211    if (!$had_error) {
    32043212    ### Now need to copy everything top level in doc dir into nminus-1
Note: See TracChangeset for help on using the changeset viewer.