Remove also owner_idle_time and attachments.submitter fields
parent
21237a5070
commit
139e289d51
|
@ -184,7 +184,6 @@ use constant DEFAULT_FIELDS => (map { my $i = 0; $_ = { (map { (DEFAULT_FIELD_CO
|
|||
[ 'attachments.ispatch', 'Attachment is patch', 0, 0, 0 ],
|
||||
[ 'attachments.isobsolete', 'Attachment is obsolete', 0, 0, 0 ],
|
||||
[ 'attachments.isprivate', 'Attachment is private', 0, 0, 0 ],
|
||||
[ 'attachments.submitter', 'Attachment creator', 0, 0, 0 ],
|
||||
|
||||
[ 'target_milestone', 'Target Milestone', 0, 1, 1, FIELD_TYPE_SINGLE_SELECT, 'product', 'product', 'product' ],
|
||||
[ 'creation_ts', 'Creation time', 1, 0, 0, FIELD_TYPE_DATETIME ],
|
||||
|
@ -202,7 +201,6 @@ use constant DEFAULT_FIELDS => (map { my $i = 0; $_ = { (map { (DEFAULT_FIELD_CO
|
|||
[ 'work_time', 'Hours Worked', 0, 0, 0 ],
|
||||
[ 'percentage_complete', 'Percentage Complete', 0, 0, 0 ],
|
||||
[ 'content', 'Content', 0, 0, 0 ],
|
||||
[ 'owner_idle_time', 'Time Since Assignee Touched', 0, 0, 0 ],
|
||||
[ 'see_also', 'See Also', 0, 1, 0, FIELD_TYPE_BUG_URLS ],
|
||||
));
|
||||
|
||||
|
@ -1181,7 +1179,8 @@ sub populate_field_definitions
|
|||
$dbh->do(
|
||||
"DELETE FROM fielddefs WHERE name IN ('cc_accessible', 'requesters.login_name',
|
||||
'attachments.thedata', 'attach_data.thedata', 'content', 'requestees.login_name',
|
||||
'setters.login_name', 'longdescs.isprivate', 'assignee_accessible', 'qacontact_accessible', 'commenter')"
|
||||
'setters.login_name', 'longdescs.isprivate', 'assignee_accessible', 'qacontact_accessible',
|
||||
'commenter', 'owner_idle_time', 'attachments.submitter')"
|
||||
);
|
||||
|
||||
# MODIFY old field definitions
|
||||
|
|
|
@ -150,7 +150,7 @@ $Bugzilla::messages->{en} = {
|
|||
'flagtypes.name' => 'Flags and Requests',
|
||||
'requestees.login_name' => 'Flag Requestee',
|
||||
'setters.login_name' => 'Flag Setter',
|
||||
# Names with other_ prefix are used with correlated search terms
|
||||
# Names with other_ prefix are to be used with correlated search terms
|
||||
other_work_time => 'Hours Worked $1',
|
||||
other_longdesc => 'Comment $1',
|
||||
other_commenter => 'Comment $1 author',
|
||||
|
|
|
@ -546,7 +546,7 @@ sub STATIC_COLUMNS
|
|||
};
|
||||
|
||||
# Search-only fields that were previously in fielddefs
|
||||
foreach my $col (qw(requestees.login_name setters.login_name longdescs.isprivate content commenter))
|
||||
foreach my $col (qw(requestees.login_name setters.login_name longdescs.isprivate content commenter owner_idle_time attachments.submitter))
|
||||
{
|
||||
$columns->{$col}->{title} = Bugzilla->messages->{field_descs}->{$col};
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ else
|
|||
# Есть специальное поле "longdesc", означающее добавление комментариев
|
||||
my $f = [ Bugzilla->get_fields ];
|
||||
@$f = sort { lc $a->description cmp lc $b->description } grep { $_->name !~ /
|
||||
\. | ^owner_idle_time$ | ^cclist_accessible$ | ^creation_ts$ | ^days_elapsed$ | ^reporter_accessible$ /xs } @$f;
|
||||
\. | ^cclist_accessible$ | ^creation_ts$ | ^days_elapsed$ | ^reporter_accessible$ /xs } @$f;
|
||||
# Ещё есть специальное поле "work_time_date", означающее списание времени задним числом
|
||||
push @$f, { description => 'Backdated worktime', name => 'work_time_date' };
|
||||
$vars->{my_fielddefs} = $f;
|
||||
|
|
|
@ -78,7 +78,7 @@ my $field_descs = { map { $_->name => $_->description } Bugzilla->get_fields({ o
|
|||
$field_descs->{platform} = $field_descs->{rep_platform} if $field_descs->{rep_platform};
|
||||
$field_descs->{comment} = $field_descs->{longdesc};
|
||||
for ((grep { /\./ } keys %$field_descs), (qw/rep_platform longdesc bug_group changeddate commenter content opendate
|
||||
creation_ts delta_ts days_elapsed everconfirmed percentage_complete owner_idle_time work_time/))
|
||||
creation_ts delta_ts days_elapsed everconfirmed percentage_complete work_time/))
|
||||
{
|
||||
delete $field_descs->{$_};
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ use constant GLOBAL_GENERAL_FIELDS => qw(
|
|||
attachments.ispatch
|
||||
attachments.isprivate
|
||||
attachments.mimetype
|
||||
attachments.submitter
|
||||
|
||||
flagtypes.name
|
||||
|
||||
|
@ -35,7 +34,6 @@ use constant GLOBAL_GENERAL_FIELDS => qw(
|
|||
everconfirmed
|
||||
keywords
|
||||
longdesc
|
||||
owner_idle_time
|
||||
product
|
||||
qa_contact
|
||||
reporter
|
||||
|
|
Loading…
Reference in New Issue