Commit 984348db authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 583622: email_in.pl doesn't let me set timetracking fields

r/a=mkanat
parent 300521bd
......@@ -3731,12 +3731,6 @@ sub map_fields {
}
$field_values{$field_name} = $params->{$field};
}
# This protects the WebService Bug.search method.
unless (Bugzilla->user->is_timetracker) {
delete @field_values{qw(estimated_time remaining_time deadline)};
}
return \%field_values;
}
......
......@@ -405,7 +405,11 @@ sub search {
$params = Bugzilla::Bug::map_fields($params);
delete $params->{WHERE};
unless (Bugzilla->user->is_timetracker) {
delete $params->{$_} foreach qw(estimated_time remaining_time deadline);
}
# Do special search types for certain fields.
if ( my $bug_when = delete $params->{delta_ts} ) {
$params->{WHERE}->{'delta_ts >= ?'} = $bug_when;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment