[Rt-commit] rt branch, 4.2/autocomplete-links, updated. rt-3.9.7-1168-g49f7d13
Shawn Moore
sartak at bestpractical.com
Thu Mar 10 11:42:03 EST 2011
The branch, 4.2/autocomplete-links has been updated
via 49f7d13f3d945f1bddeace1ae2db5502695829fc (commit)
from 068b766443757ab4cd3d96a4818efb7212c2d3ea (commit)
Summary of changes:
lib/RT/Tickets.pm | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 49f7d13f3d945f1bddeace1ae2db5502695829fc
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Mar 10 11:40:54 2011 -0500
Lift the only-math-relations constraint on _IntLimit
You can use LIKE on integers in SQLite, Postgres, and MySQL. This
makes autocomplete on ticket IDs much more useful.
And if you're using a database that doesn't support them, well,
you'll still get an error, it'll just originate from a different layer.
diff --git a/lib/RT/Tickets.pm b/lib/RT/Tickets.pm
index 85f3c33..b79ca81 100644
--- a/lib/RT/Tickets.pm
+++ b/lib/RT/Tickets.pm
@@ -389,9 +389,6 @@ Meta Data:
sub _IntLimit {
my ( $sb, $field, $op, $value, @rest ) = @_;
- die "Invalid Operator $op for $field"
- unless $op =~ /^(=|!=|>|<|>=|<=)$/;
-
$sb->_SQLLimit(
FIELD => $field,
VALUE => $value,
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list