Fix :: ->

classes
Vitaliy Filippov 2016-01-19 15:47:15 +03:00
parent cedb870a81
commit 5b4ce0bd96
3 changed files with 4 additions and 4 deletions

View File

@ -2304,7 +2304,7 @@ sub changed
# User is searching for a comment with specific text
$ld_term->{where} .= ' AND '.$dbh->sql_iposition("$ld.thetext", $added);
}
elsif ($f{'longdescs.isprivate'} && $self->user->is_insider)
elsif ($f{'longdescs.isprivate'} && $self->{user}->is_insider)
{
# Insider is searching for a comment with specific privacy
$ld_term->{where} .= " AND $ld.isprivate = ".($v->{value} ? 1 : 0);
@ -3278,7 +3278,7 @@ sub _in_search_results
my $search = new Bugzilla::Search(
params => http_decode_query($query),
fields => [ "bugs.bug_id" ],
user => $self->user,
user => $self->{user},
);
my $sqlquery = $search->bugid_query;
my $t = "ins_".$self->{sequence};

View File

@ -179,7 +179,7 @@ $vars->{chfield} = [
# Fields for reports
$vars->{report_columns} = [
sort { $a->{sortkey} <=> $b->{sortkey} || $a->{title} cmp $b->{title} }
values %{Bugzilla::Search::REPORT_COLUMNS()}
values %{Bugzilla::Search->REPORT_COLUMNS()}
];
# Boolean charts

View File

@ -104,7 +104,7 @@ elsif ($action eq 'del')
exit;
}
my $valid_columns = Bugzilla::Search::REPORT_COLUMNS();
my $valid_columns = Bugzilla::Search->REPORT_COLUMNS();
$vars->{report_columns} = $valid_columns;
my $field = {};