diff options
author | mkanat%bugzilla.org <> | 2006-08-11 06:44:49 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-08-11 06:44:49 +0000 |
commit | fb079a1bcf1a9eb442dbd746d787d573a89fdc4a (patch) | |
tree | 644d05740726c4e746f0f77b3cb8b66e49100f39 /importxml.pl | |
parent | Bug 348070: An arrayref is always "true" - Patch by Frédéric Buclin <LpSoli... (diff) | |
download | bugzilla-fb079a1bcf1a9eb442dbd746d787d573a89fdc4a.tar.gz bugzilla-fb079a1bcf1a9eb442dbd746d787d573a89fdc4a.tar.bz2 bugzilla-fb079a1bcf1a9eb442dbd746d787d573a89fdc4a.zip |
Bug 347291: Make Bugzilla::User use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'importxml.pl')
-rwxr-xr-x | importxml.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/importxml.pl b/importxml.pl index 4ca9c8745..e048aac40 100755 --- a/importxml.pl +++ b/importxml.pl @@ -179,7 +179,7 @@ sub flag_handler { my $type = ($attachid) ? "attachment" : "bug"; my $err = ''; - my $setter = Bugzilla::User->new_from_login($setter_login); + my $setter = new Bugzilla::User({ name => $setter_login }); my $requestee; my $requestee_id; @@ -195,7 +195,7 @@ sub flag_handler { } my $setter_id = $setter->id; if ( defined($requestee_login) ) { - $requestee = Bugzilla::User->new_from_login($requestee_login); + $requestee = new Bugzilla::User({ name => $requestee_login }); if ( $requestee ) { if ( !$requestee->can_see_bug($bugid) ) { $err .= "Requestee is not a member of bug group\n"; @@ -423,7 +423,7 @@ sub process_bug { my $root = $twig->root; my $maintainer = $root->{'att'}->{'maintainer'}; my $exporter_login = $root->{'att'}->{'exporter'}; - my $exporter = Bugzilla::User->new_from_login($exporter_login); + my $exporter = new Bugzilla::User({ name => $exporter_login }); my $urlbase = $root->{'att'}->{'urlbase'}; # We will store output information in this variable. |