[Bps-public-commit] r18298 - in Net-Google-Code/branches/write: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Feb 9 07:17:57 EST 2009
Author: sunnavy
Date: Mon Feb 9 07:17:56 2009
New Revision: 18298
Modified:
Net-Google-Code/branches/write/ (props changed)
Net-Google-Code/branches/write/lib/Net/Google/Code/Issue.pm
Log:
r19722 at sunnavys-mb: sunnavy | 2009-02-09 20:16:20 +0800
update the object too when update an issue
Modified: Net-Google-Code/branches/write/lib/Net/Google/Code/Issue.pm
==============================================================================
--- Net-Google-Code/branches/write/lib/Net/Google/Code/Issue.pm (original)
+++ Net-Google-Code/branches/write/lib/Net/Google/Code/Issue.pm Mon Feb 9 07:17:56 2009
@@ -165,11 +165,20 @@
}
);
- return $self->html_contains(
- look_down => [ class => 'notice' ],
- as_text => qr/has been updated/,
- );
-
+ if (
+ $self->html_contains(
+ look_down => [ class => 'notice' ],
+ as_text => qr/has been updated/,
+ )
+ )
+ {
+ $self->load( $self->id ); # maybe this is too much?
+ return 1;
+ }
+ else {
+ warn 'update failed';
+ return;
+ }
}
More information about the Bps-public-commit
mailing list