[Bps-public-commit] net-lighthouse branch, master, updated. 01efefc8e2e3131ca1df430d9bc2e4b88b2d3da9

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Sep 1 05:35:14 EDT 2009


The branch, master has been updated
       via  01efefc8e2e3131ca1df430d9bc2e4b88b2d3da9 (commit)
      from  a0a3215e6181767eaf1b635bb7e0e2e6c80dc2cc (commit)

Summary of changes:
 lib/Net/Lighthouse/Project/Ticket.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 01efefc8e2e3131ca1df430d9bc2e4b88b2d3da9
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 1 17:35:01 2009 +0800

    bit fix

diff --git a/lib/Net/Lighthouse/Project/Ticket.pm b/lib/Net/Lighthouse/Project/Ticket.pm
index 9c2f9de..6944862 100644
--- a/lib/Net/Lighthouse/Project/Ticket.pm
+++ b/lib/Net/Lighthouse/Project/Ticket.pm
@@ -105,6 +105,7 @@ sub _translate_from_xml {
         }
         elsif ( $k eq 'attachments' ) {
             my $attachments = $ref->{attachments}{attachment};
+            next unless $attachments;
             $attachments = [ $attachments ] unless ref $attachments eq 'ARRAY';
             require Net::Lighthouse::Project::Ticket::Attachment;
             $ref->{attachments} = [

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



More information about the Bps-public-commit mailing list