[Catalyst-commits] r9803 - in Catalyst-Runtime/5.80/trunk: .
lib/Catalyst/DispatchType
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Wed Apr 22 22:44:46 GMT 2009
Author: rafl
Date: 2009-04-22 23:44:46 +0100 (Wed, 22 Apr 2009)
New Revision: 9803
Modified:
Catalyst-Runtime/5.80/trunk/Changes
Catalyst-Runtime/5.80/trunk/lib/Catalyst/DispatchType/Chained.pm
Log:
Fix the unattached chain debug table for endpoints with no parents at all.
Modified: Catalyst-Runtime/5.80/trunk/Changes
===================================================================
--- Catalyst-Runtime/5.80/trunk/Changes 2009-04-22 21:01:39 UTC (rev 9802)
+++ Catalyst-Runtime/5.80/trunk/Changes 2009-04-22 22:44:46 UTC (rev 9803)
@@ -1,5 +1,7 @@
# This file documents the revision history for Perl extension Catalyst.
+ - Fix the unattached chain debug table for endpoints with no
+ parents at all. (rafl)
- Turn of test aggregation by default. Only aggregate if the
AGGREGATE_TESTS environment variable is set and a recent
Test::Aggregate is available. (rafl)
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/DispatchType/Chained.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/DispatchType/Chained.pm 2009-04-22 21:01:39 UTC (rev 9802)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/DispatchType/Chained.pm 2009-04-22 22:44:46 UTC (rev 9803)
@@ -112,7 +112,7 @@
}
if ($parent ne '/') {
$has_unattached_actions = 1;
- $unattached_actions->row('/'.$parents[0]->reverse, $parent);
+ $unattached_actions->row('/' . ($parents[0] || $endpoint)->reverse, $parent);
next ENDPOINT;
}
my @rows;
@@ -345,7 +345,7 @@
return undef if @captures; # fail for too many captures
return join('/', '', @parts);
-
+
}
=head2 $c->expand_action($action)
More information about the Catalyst-commits
mailing list