[Bps-public-commit] App-Changeloggr branch, master, updated. a49ee258b05c1d02c86a2a7f3a9a4ad3b5fa3b7d
sartak at bestpractical.com
sartak at bestpractical.com
Tue Jul 28 18:07:45 EDT 2009
The branch, master has been updated
via a49ee258b05c1d02c86a2a7f3a9a4ad3b5fa3b7d (commit)
from 4748282f738478e3526cb84ca88ab2d1e98db791 (commit)
Summary of changes:
lib/App/Changeloggr/Action/CreateVote.pm | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit a49ee258b05c1d02c86a2a7f3a9a4ad3b5fa3b7d
Author: Shawn M Moore <sartak at gmail.com>
Date: Tue Jul 28 18:07:06 2009 -0400
Don't thank the user for skipping the change
diff --git a/lib/App/Changeloggr/Action/CreateVote.pm b/lib/App/Changeloggr/Action/CreateVote.pm
index d042a65..2f6191f 100644
--- a/lib/App/Changeloggr/Action/CreateVote.pm
+++ b/lib/App/Changeloggr/Action/CreateVote.pm
@@ -43,7 +43,13 @@ sub validate_tag {
return $self->validation_ok('tag');
}
-sub report_success { shift->result->message(_("Thanks for voting!")) }
+sub report_success {
+ my $self = shift;
+
+ # Don't thank the user for skipping the change
+ $self->result->message(_("Thanks for voting!"))
+ unless $self->argument_value('tag') =~ /^_/;
+}
1;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list