Changeset 22220


Ignore:
Timestamp:
2010-06-02T13:41:53+12:00 (14 years ago)
Author:
kjdon
Message:

in classify, don't readd the document if edit mode is update - all we are doing is storing a list of docs, so don't want to add it again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/classify/AllList.pm

    r18455 r22220  
    7373    my $self = shift (@_);
    7474    my ($doc_obj, $edit_mode) = @_;
    75 
     75   
    7676    my $doc_OID = $doc_obj->get_OID();
    77     
     77   
    7878    if ($edit_mode eq "delete") {
    7979    $self->oid_array_delete($doc_OID,'list');
     80   
     81    }
     82    elsif ($edit_mode eq "update") {
     83    # do nothing. Doc is already in the list. Is the order important??
    8084    }
    8185    else {
Note: See TracChangeset for help on using the changeset viewer.