[Bps-public-commit] net-lighthouse branch, master, updated. 2236b16483a707e1e9fcc0151027c42491b8cf43

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Sep 2 02:45:27 EDT 2009


The branch, master has been updated
       via  2236b16483a707e1e9fcc0151027c42491b8cf43 (commit)
      from  06074867b9840e7a624dc6615a1ca1d5017203eb (commit)

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

- Log -----------------------------------------------------------------
commit 2236b16483a707e1e9fcc0151027c42491b8cf43
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Sep 2 14:45:17 2009 +0800

    assigned_user_id and milestone_id can be empty when creating or updating ticket

diff --git a/lib/Net/Lighthouse/Project/Ticket.pm b/lib/Net/Lighthouse/Project/Ticket.pm
index 1d9b50e..ad11d14 100644
--- a/lib/Net/Lighthouse/Project/Ticket.pm
+++ b/lib/Net/Lighthouse/Project/Ticket.pm
@@ -129,13 +129,13 @@ sub create {
             state => { optional => 1, type => SCALAR },
             assigned_user_id => {
                 optional => 1,
-                type     => SCALAR,
-                regex    => qr/^\d+$/,
+                type     => SCALAR | UNDEF,
+                regex    => qr/^(\d+|)$/,
             },
             milestone_id => {
                 optional => 1,
-                type     => SCALAR,
-                regex    => qr/^\d+$/,
+                type     => SCALAR | UNDEF,
+                regex    => qr/^(\d+|)$/,
             },
             tag => { optional => 1, type => SCALAR },
         }
@@ -175,13 +175,13 @@ sub update {
             state => { optional => 1, type => SCALAR },
             assigned_user_id => {
                 optional => 1,
-                type     => SCALAR,
-                regex    => qr/^\d+$/,
+                type     => SCALAR | UNDEF,
+                regex    => qr/^(\d+|)$/,
             },
             milestone_id => {
                 optional => 1,
-                type     => SCALAR,
-                regex    => qr/^\d+$/,
+                type     => SCALAR | UNDEF,
+                regex    => qr/^(\d+|)$/,
             },
             tag => { optional => 1, type => SCALAR },
         }

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



More information about the Bps-public-commit mailing list