[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. f94e80a846488b1391d37a214d5488f40e5b8e86

jesse jesse at bestpractical.com
Mon Feb 9 22:34:09 EST 2009


The branch, master has been updated
       via  f94e80a846488b1391d37a214d5488f40e5b8e86 (commit)
      from  115e1fd41b05120f4d5240ce003775c62ca77ebc (commit)

Summary of changes:
 lib/App/SD/Server/View.pm |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit f94e80a846488b1391d37a214d5488f40e5b8e86
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Feb 9 22:33:57 2009 -0500

    quieted down some undefined warnings

diff --git a/lib/App/SD/Server/View.pm b/lib/App/SD/Server/View.pm
index 148ff79..f06c05e 100644
--- a/lib/App/SD/Server/View.pm
+++ b/lib/App/SD/Server/View.pm
@@ -366,7 +366,7 @@ template 'show_ticket_history' => page {
         );
         $ticket->load(($id =~ /^\d+$/ ? 'luid' : 'uuid') =>$id);
 
-       $ticket->luid.": ".$ticket->prop('summary');
+       $ticket->luid.": ".($ticket->prop('summary') || '(No summary)');
     } content {
         my $self = shift;
         my $id = shift;
@@ -390,7 +390,7 @@ template 'show_ticket' => page {
         );
         $ticket->load(($id =~ /^\d+$/ ? 'luid' : 'uuid') =>$id);
 
-       $ticket->luid.": ".$ticket->prop('summary');
+       $ticket->luid.": ".($ticket->prop('summary') ||'(No summary)');
     } content {
         my $self = shift;
         my $id = shift;
@@ -518,7 +518,7 @@ template ticket_comments => sub {
                         if ( !$comment->prop('content') ) {
                             i {'No body was entered for this comment'};
 
-                        } elsif ( $comment->prop('content_type') =~ m{text/html}i ) {
+                        } elsif ( $comment->prop('content_type') &&  $comment->prop('content_type') =~ m{text/html}i ) {
                             outs_raw( $comment->prop('content') );
                         } else {
                             div { class is 'content-pre';     $comment->prop('content');};

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list