diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-02 03:34:14 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-02 03:34:14 +0200 |
commit | 984348dbea43263372f84fd4d9cf2a56f6a6112f (patch) | |
tree | 619d2b70a050e25b12935c05cdf7f1ff4cddec38 | |
parent | 300521bde81fd1102cac692ebc0a75312d1c5f2b (diff) | |
download | bugzilla-984348dbea43263372f84fd4d9cf2a56f6a6112f.tar.gz bugzilla-984348dbea43263372f84fd4d9cf2a56f6a6112f.tar.xz |
Bug 583622: email_in.pl doesn't let me set timetracking fields
r/a=mkanat
-rw-r--r-- | Bugzilla/Bug.pm | 6 | ||||
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 6638573c6..b9fffe779 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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; } diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 625ca2541..8558e04f7 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -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; |