[Rt-commit] r3754 - in rt/branches/3.4-RELEASE: . lib/RT
robert at bestpractical.com
robert at bestpractical.com
Thu Sep 1 17:47:36 EDT 2005
Author: robert
Date: Thu Sep 1 17:47:36 2005
New Revision: 3754
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/lib/RT/Tickets_Overlay.pm
Log:
r3800 at bear: rspier | 2005-09-01 14:46:59 -0700
RT-Ticket: 6986
RT-Status: resolved
RT-Update: correspond
If we didn't generate any SQL, don't pass it to FromSQL which will reset the dirty flag and then SB won't actually run anything.
Also, tests.
Modified: rt/branches/3.4-RELEASE/lib/RT/Tickets_Overlay.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Tickets_Overlay.pm (original)
+++ rt/branches/3.4-RELEASE/lib/RT/Tickets_Overlay.pm Thu Sep 1 17:47:36 2005
@@ -2574,7 +2574,7 @@
}
else {
$sql = $self->ClausesToSQL($clauseRef);
- $self->FromSQL($sql);
+ $self->FromSQL($sql) if $sql;
}
}
@@ -2667,6 +2667,15 @@
=cut
+=begin testing
+
+# We assume that we've got some tickets hanging around from before.
+ok( my $unlimittickets = RT::Tickets->new( $RT::SystemUser ) );
+ok( $unlimittickets->UnLimit );
+ok( $unlimittickets->Count > 0, "UnLimited tickets object should return tickets" );
+
+=end testing
+
1;
More information about the Rt-commit
mailing list