Bug 70605
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1346 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
710e7747d2
commit
899f8ba426
|
@ -2116,6 +2116,8 @@ sub _check_bugid_field
|
||||||
sub fields {
|
sub fields {
|
||||||
my $class = shift;
|
my $class = shift;
|
||||||
|
|
||||||
|
# FIXME bugzilla.dtd should be autogenerated
|
||||||
|
# FIXME change useplatform/useopsys/useqacontact to "field(xxx).is_obsolete"
|
||||||
my @fields =
|
my @fields =
|
||||||
(
|
(
|
||||||
# Standard Fields
|
# Standard Fields
|
||||||
|
|
|
@ -785,6 +785,7 @@ sub _bug_to_hash {
|
||||||
# All the basic bug attributes are here, in alphabetical order.
|
# All the basic bug attributes are here, in alphabetical order.
|
||||||
# A bug attribute is "basic" if it doesn't require an additional
|
# A bug attribute is "basic" if it doesn't require an additional
|
||||||
# database call to get the info.
|
# database call to get the info.
|
||||||
|
# FIXME remove hardcode, use global "fielddefs" metadata
|
||||||
my %item = (
|
my %item = (
|
||||||
alias => $self->type('string', $bug->alias),
|
alias => $self->type('string', $bug->alias),
|
||||||
classification => $self->type('string', $bug->classification),
|
classification => $self->type('string', $bug->classification),
|
||||||
|
@ -793,8 +794,6 @@ sub _bug_to_hash {
|
||||||
id => $self->type('int', $bug->bug_id),
|
id => $self->type('int', $bug->bug_id),
|
||||||
is_confirmed => $self->type('boolean', $bug->everconfirmed),
|
is_confirmed => $self->type('boolean', $bug->everconfirmed),
|
||||||
last_change_time => $self->type('dateTime', $bug->delta_ts),
|
last_change_time => $self->type('dateTime', $bug->delta_ts),
|
||||||
op_sys => $self->type('string', $bug->op_sys),
|
|
||||||
platform => $self->type('string', $bug->rep_platform),
|
|
||||||
priority => $self->type('string', $bug->priority),
|
priority => $self->type('string', $bug->priority),
|
||||||
product => $self->type('string', $bug->product),
|
product => $self->type('string', $bug->product),
|
||||||
resolution => $self->type('string', $bug->resolution),
|
resolution => $self->type('string', $bug->resolution),
|
||||||
|
@ -807,6 +806,17 @@ sub _bug_to_hash {
|
||||||
whiteboard => $self->type('string', $bug->status_whiteboard),
|
whiteboard => $self->type('string', $bug->status_whiteboard),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# FIXME change toggle method to fielddefs.is_obsolete
|
||||||
|
if (Bugzilla->params->{useopsys} && filter_wants $params, 'op_sys')
|
||||||
|
{
|
||||||
|
$item{op_sys} = $self->type('string', $bug->op_sys);
|
||||||
|
}
|
||||||
|
|
||||||
|
# FIXME change toggle method to fielddefs.is_obsolete
|
||||||
|
if (Bugzilla->params->{useplatform} && filter_wants $params, 'platform')
|
||||||
|
{
|
||||||
|
$item{platform} = $self->type('string', $bug->rep_platform);
|
||||||
|
}
|
||||||
|
|
||||||
# First we handle any fields that require extra SQL calls.
|
# First we handle any fields that require extra SQL calls.
|
||||||
# We don't do the SQL calls at all if the filter would just
|
# We don't do the SQL calls at all if the filter would just
|
||||||
|
@ -845,7 +855,8 @@ sub _bug_to_hash {
|
||||||
@{ $bug->keyword_objects };
|
@{ $bug->keyword_objects };
|
||||||
$item{'keywords'} = \@keywords;
|
$item{'keywords'} = \@keywords;
|
||||||
}
|
}
|
||||||
if (filter_wants $params, 'qa_contact') {
|
if (Bugzilla->params->{useqacontact} &&
|
||||||
|
filter_wants $params, 'qa_contact') {
|
||||||
my $qa_login = $bug->qa_contact ? $bug->qa_contact->login : '';
|
my $qa_login = $bug->qa_contact ? $bug->qa_contact->login : '';
|
||||||
$item{'qa_contact'} = $self->type('string', $qa_login);
|
$item{'qa_contact'} = $self->type('string', $qa_login);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ sub datetime_format_inbound {
|
||||||
|
|
||||||
sub datetime_format_outbound {
|
sub datetime_format_outbound {
|
||||||
my ($self, $date) = @_;
|
my ($self, $date) = @_;
|
||||||
|
return '1970-01-01T00:00:00' if !$date;
|
||||||
|
|
||||||
my $time = $date;
|
my $time = $date;
|
||||||
if (blessed($date)) {
|
if (blessed($date)) {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
LD_PRELOAD=/usr/lib/i386-linux-gnu/libstdc++.so.6:/lib/libuuid.so.1 perl checksetup.pl --no-chmod --no-templates
|
perl checksetup.pl --no-chmod --no-templates
|
||||||
|
|
Loading…
Reference in New Issue