Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rtir
Commits
bcf95f03
Commit
bcf95f03
authored
Jul 25, 2013
by
Kevin Falcone
Browse files
Merge branch '3.0/search-query-tweak' into 3.0.0-releng
parents
3b5dd0ce
3068ab7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
html/RTIR/Search/Elements/ShowResults
View file @
bcf95f03
...
...
@@ -47,7 +47,12 @@
%# END BPS TAGGED BLOCK }}}
<%INIT>
$Query = join ' AND ', map "( $_ )", grep $_, $BaseQuery, $Query;
if ( $BaseQuery && $Query ) {
$Query = join ' AND ', map "( $_ )", $BaseQuery, $Query;
}
else {
$Query ||= $BaseQuery;
}
$BaseURL = RT->Config->Get('WebPath')."/$BaseURL" unless $BaseURL =~ m{^/};
$BaseURL .= ( $BaseURL =~ /\?/ )? '&': '?' unless $BaseURL =~ m{[&?]$};
...
...
html/RTIR/Search/Reporting.html
View file @
bcf95f03
...
...
@@ -71,7 +71,14 @@
<
%
INIT
>
my $title = loc('Reporting');
my $FullQuery = join ' AND ', map "( $_ )", grep $_, $BaseQuery, $Query;
my $FullQuery;
if ( $BaseQuery
&&
$Query ) {
$FullQuery = join ' AND ', map "( $_ )", $BaseQuery, $Query;
}
else {
$FullQuery = $BaseQuery || $Query;
}
</
%
INIT>
...
...
html/RTIR/Search/Results.html
View file @
bcf95f03
...
...
@@ -82,8 +82,12 @@ RT::IR::Config::CheckObsoleteCFSyntax($Format,$location);
RT::IR::Config::CheckObsoleteCFSyntax($Query,$location);
if ( $Type ) {
$BaseQuery ||= RT::IR->Query( Queue => $Queue );
$Query ||= RT::IR->ActiveQuery( Queue => $Queue );
if ( $Query ) {
$BaseQuery ||= RT::IR->Query( Queue => $Queue );
}
else {
$Query = RT::IR->ActiveQuery( Queue => $Queue );
}
}
my $BaseURL = "RTIR/Search/Results.html";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment