[Bps-public-commit] SD branch, master, updated. 75b907550fcabf9e803ce4459fe17853e040360a
jesse
jesse at bestpractical.com
Sun Jul 19 21:57:54 EDT 2009
The branch, master has been updated
via 75b907550fcabf9e803ce4459fe17853e040360a (commit)
from 4e1d982122c0c0fc9a036d2a191f86225ce55d9e (commit)
Summary of changes:
lib/App/SD/Server/View.pm | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 75b907550fcabf9e803ce4459fe17853e040360a
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Sun Jul 19 18:57:43 2009 -0700
More improvements to history listing to not explode
diff --git a/lib/App/SD/Server/View.pm b/lib/App/SD/Server/View.pm
index e66f033..e2cff4d 100644
--- a/lib/App/SD/Server/View.pm
+++ b/lib/App/SD/Server/View.pm
@@ -447,6 +447,8 @@ content {
my $start = shift || $latest;
my $end = $start - 20;
+ $end = 1 if $end < 1;
+
my @changesets;
$self->app_handle->handle->traverse_changesets(
reverse => 1,
@@ -501,6 +503,8 @@ content {
if ( $_->name eq 'ticket' ) { $id = $_->new_value }
}
+
+ return unless ($id);
$ticket->load( uuid => $id ) ;
h2 {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list