[Bps-public-commit] Net-Trac branch, master, updated. c3bd330ad29fcc0f6156aec0042dfeb06233e099

Thomas Sibley trs at bestpractical.com
Mon Nov 29 09:13:41 EST 2010


The branch, master has been updated
       via  c3bd330ad29fcc0f6156aec0042dfeb06233e099 (commit)
      from  08492c30f26a3bd105588dd476b046f6923133cd (commit)

Summary of changes:
 lib/Net/Trac/Ticket.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit c3bd330ad29fcc0f6156aec0042dfeb06233e099
Author: Peter Lobsinger <plobsing at gmail.com>
Date:   Sun Nov 28 06:14:09 2010 -0500

    add default arrayref for ticket attachments

diff --git a/lib/Net/Trac/Ticket.pm b/lib/Net/Trac/Ticket.pm
index b1fb47d..75263a9 100644
--- a/lib/Net/Trac/Ticket.pm
+++ b/lib/Net/Trac/Ticket.pm
@@ -56,7 +56,11 @@ has history => (
 
 
 
-has _attachments            => ( isa => 'ArrayRef', is => 'rw' );
+has _attachments => (
+    isa => 'ArrayRef',
+    is => 'rw',
+    default => sub {[]}
+);
 
 our $LOADED_NEW_METADATA =0;
 our $LOADED_UPDATE_METADATA =0;

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



More information about the Bps-public-commit mailing list