[Bps-public-commit] App-Changeloggr branch, master, updated. 0ca07232c39f9ea982161312b5901ef4665ba9a8
sartak at bestpractical.com
sartak at bestpractical.com
Wed May 20 16:19:18 EDT 2009
The branch, master has been updated
via 0ca07232c39f9ea982161312b5901ef4665ba9a8 (commit)
from 338160a03d25985b348a3f6e6b39f7e3f4dbd5d7 (commit)
Summary of changes:
lib/App/Changeloggr/Model/Changelog.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 0ca07232c39f9ea982161312b5901ef4665ba9a8
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed May 20 16:19:06 2009 -0400
Allow the same changelog name if it's the same changelog
diff --git a/lib/App/Changeloggr/Model/Changelog.pm b/lib/App/Changeloggr/Model/Changelog.pm
index cf35eb5..287bcb4 100644
--- a/lib/App/Changeloggr/Model/Changelog.pm
+++ b/lib/App/Changeloggr/Model/Changelog.pm
@@ -44,7 +44,8 @@ sub validate_name {
my $self = shift;
my $name = shift;
my $exist = M(Changelog => name => $name);
- return (0, "That name already exists -- choose another") if $exist->id;
+ return (0, "That name already exists -- choose another")
+ if $exist->id && $exist->id != $self->id;
return 1;
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list