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
88077233
Commit
88077233
authored
Apr 22, 2010
by
Ruslan Zakirov
Browse files
apply transaction date search only if it's FTS
parent
32b17991
Changes
1
Hide whitespace changes
Inline
Side-by-side
html/RTIR/Tools/Lookup.html
View file @
88077233
...
...
@@ -254,8 +254,10 @@ if ( $q ) {
. "OR ContentType = 'text' "
. "OR ContentType = 'text/html' )"
. " AND Content LIKE '$q'";
# apply transaction date search only if it's FTS as otherwise
# it can ruin performance of mysql optimizer rather than help
$query = "( $query ) AND TransactionDate > '". $now->ISO ."'"
}
$query = "( $query ) AND TransactionDate > '". $now->ISO ."'";
my ($val, $msg) = $session{'tickets'}->FromSQL( $query );
$RT::Logger->warning( $msg ) unless $val;
...
...
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