[Bps-public-commit] App-Changeloggr branch, master, updated. 77f2423b6ae824ac16de3786a467ec437bc1ee64

sartak at bestpractical.com sartak at bestpractical.com
Thu Feb 26 23:12:46 EST 2009


The branch, master has been updated
       via  77f2423b6ae824ac16de3786a467ec437bc1ee64 (commit)
       via  38c2a06fa18e918a242e163bf96f178abdf382ad (commit)
      from  0dbebbeb610693253c9e345e442d007c15d103d3 (commit)

Summary of changes:
 lib/App/Changeloggr/Action/UpdateChangelog.pm |    2 +-
 lib/App/Changeloggr/View.pm                   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 38c2a06fa18e918a242e163bf96f178abdf382ad
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Feb 26 23:11:28 2009 -0500

    Avoid undef warning when the user fails to provide an admin_token

diff --git a/lib/App/Changeloggr/Action/UpdateChangelog.pm b/lib/App/Changeloggr/Action/UpdateChangelog.pm
index c54979c..aa1e21c 100644
--- a/lib/App/Changeloggr/Action/UpdateChangelog.pm
+++ b/lib/App/Changeloggr/Action/UpdateChangelog.pm
@@ -11,7 +11,7 @@ sub validate_admin_token {
     my $self        = shift;
     my $admin_token = shift;
 
-    if ($self->record->as_superuser->admin_token eq $admin_token) {
+    if ($self->record->as_superuser->admin_token eq ($admin_token||'')) {
         return $self->validation_ok('admin_token');
     }
     else {

commit 77f2423b6ae824ac16de3786a467ec437bc1ee64
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Feb 26 23:12:38 2009 -0500

    Link to a changelog's name instead of its id

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 12fa66c..4fede6c 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -45,7 +45,7 @@ sub changelog_summary {
     my $changelog = shift;
 
     hyperlink(
-        url   => '/changelog/' . $changelog->id,
+        url   => '/changelog/' . $changelog->name,
         label => $changelog->name,
     );
 }

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



More information about the Bps-public-commit mailing list