Permalink
Browse files

Item13891: Use user, not author, for attachment metadata

  • Loading branch information...
1 parent 89d034f commit 9f4fae1042d13073773e36f0eb3c951e6783c4eb @gac410 gac410 committed Dec 9, 2015
Showing with 6 additions and 6 deletions.
  1. +6 −6 core/tools/bulk_copy.pl
@@ -343,9 +343,9 @@ sub copy_topic {
next;
}
- unless ( $att_info->{author} ) {
+ unless ( $att_info->{user} ) {
require Foswiki::Users::BaseUserMapping;
- $att_info->{author} =
+ $att_info->{user} =
$Foswiki::Users::BaseUserMapping::UNKNOWN_USER_CUID;
}
@@ -367,9 +367,9 @@ sub copy_topic {
announce " Copy hidden attachment $att_name";
require Foswiki::Users::BaseUserMapping;
my %att_info = (
- name => $att_name,
- author => $Foswiki::Users::BaseUserMapping::UNKNOWN_USER_CUID,
- date => 0
+ name => $att_name,
+ user => $Foswiki::Users::BaseUserMapping::UNKNOWN_USER_CUID,
+ date => 0
);
my @revs = $topicMO->getRevisionHistory($att_name)->all();
while ( my $rev = pop(@revs) ) {
@@ -520,7 +520,7 @@ sub saveAttachmentRev {
$mo,
$info->{name},
$fh,
- $info->{author},
+ $info->{user},
{ # Only works for Foswiki 2.0
forcedate => $info->{date},
comment => $info->{comment}

0 comments on commit 9f4fae1

Please sign in to comment.