Changeset 1905

Show
Ignore:
Timestamp:
04/15/08 02:44:16 (6 months ago)
Author:
fumiakiy
Message:

Do not restore duplicated scoring for an author. This may happen when an author scores another author and both exist in the database while restoring. BugId:75914

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-35/lib/MT/BackupRestore/BackupFileHandler.pm

    r1873 r1905  
    262262                $exists = 1 if $perm; 
    263263            } 
     264            elsif ('objectscore' eq $name) { 
     265                my $score = $class->exist( { 
     266                    author_id => $obj->author_id, 
     267                    object_id => $obj->object_id, 
     268                    object_ds => $obj->object_ds, 
     269                }); 
     270                $exists = 1 if $score; 
     271            } 
    264272            unless ($exists) { 
    265273                my $result;