[Rt-commit] rt branch, 4.0/case-insensitive-null, updated. rt-4.0.8-19-gb28951e
Alex Vandiver
alexmv at bestpractical.com
Fri Nov 2 14:59:59 EDT 2012
The branch, 4.0/case-insensitive-null has been updated
via b28951e6a0dfe20be9b3ac5a29d2296905498b62 (commit)
from 80bf39f55afdefc9c4e0c695bca0120256446bad (commit)
Summary of changes:
share/html/Search/Build.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit b28951e6a0dfe20be9b3ac5a29d2296905498b62
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Nov 2 14:56:20 2012 -0400
Accept lower-case "null" in the query builder
While 6ec04b5 fixed TicketSQL to allow lower-case 'null' in queries, the
query builder UI still required that the string be upper-case.
Propagate this fix into the query builder; this removes the last
incidence of comparing to "NULL" (both via regex and eq).
diff --git a/share/html/Search/Build.html b/share/html/Search/Build.html
index c670559..bcbd08f 100644
--- a/share/html/Search/Build.html
+++ b/share/html/Search/Build.html
@@ -221,7 +221,7 @@ foreach my $arg ( keys %ARGS ) {
my ( $op, $value ) = ( $ops[$i], $values[$i] );
next if !defined $value || $value eq '';
- if ( $value eq 'NULL' && $op =~ /=/ ) {
+ if ( $value =~ /^NULL$/i && $op =~ /=/ ) {
if ( $op eq '=' ) {
$op = "IS";
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list