[Rt-commit] rt branch, 4.0/forbid-linking-deleted-tickets, updated. rt-4.0.0-197-g80fd2e8
? sunnavy
sunnavy at bestpractical.com
Mon May 16 00:15:21 EDT 2011
The branch, 4.0/forbid-linking-deleted-tickets has been updated
via 80fd2e89d8653b9c6899e9a062ce08f81668df09 (commit)
from b3add236e8d372860cbd830b75b258a95d8b650f (commit)
Summary of changes:
lib/RT/Links.pm | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
- Log -----------------------------------------------------------------
commit 80fd2e89d8653b9c6899e9a062ce08f81668df09
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon May 16 12:12:23 2011 +0800
put off the accurate Count to 4.2, as it needs to _DoSearch sometimes which is a bit expensive
diff --git a/lib/RT/Links.pm b/lib/RT/Links.pm
index f9355f2..07f8774 100644
--- a/lib/RT/Links.pm
+++ b/lib/RT/Links.pm
@@ -158,17 +158,6 @@ sub AddRecord {
$self->{'rows'}++;
}
-sub Count {
- my $self = shift;
- my $inaccurate = $self->SUPER::Count;
-
- # if no links at all, 0 is the accurate answer already.
- return $inaccurate unless $inaccurate;
-
- $self->_DoSearch if $self->{'must_redo_search'};
- return $self->_RecordCount;
-}
-
=head2 IsValidLink
if linked to a local ticket and is deleted, then the link is invalid.
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list