From 2f804027b44c5790d4547f3161bff28266150bef Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 10 Nov 2009 16:31:47 +0000 Subject: Bug 505039: Use $user->is_timetracker instead of $user->in_group(Bugzilla->params->{'timetrackinggroup'}) - Patch by XqueZme r/a=LpSolit --- importxml.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'importxml.pl') diff --git a/importxml.pl b/importxml.pl index f5385d178..c08f5c8b2 100755 --- a/importxml.pl +++ b/importxml.pl @@ -1198,7 +1198,7 @@ sub process_bug { $err .= "No attachment ID specified, dropping attachment\n"; next; } - if (!$exporter->is_insider) && $att->{'isprivate'}){ + if (!$exporter->is_insider && $att->{'isprivate'}) { $err .= "Exporter not in insidergroup and attachment marked private.\n"; $err .= " Marking attachment public\n"; $att->{'isprivate'} = 0; @@ -1251,7 +1251,7 @@ sub process_bug { # Insert longdesc and append any errors my $worktime = $bug_fields{'actual_time'} || 0.0; - $worktime = 0.0 if (!$exporter->in_group($params->{'timetrackinggroup'})); + $worktime = 0.0 if (!$exporter->is_timetracker); $long_description .= "\n" . $comments; if ($err) { $long_description .= "\n$err\n"; -- cgit v1.2.3-24-g4f1b