bugfix from dispatcher
Tara L Andrews [Fri, 3 Feb 2012 19:54:13 +0000 (20:54 +0100)]
stemmaweb/lib/stemmaweb/Controller/Relation.pm

index 25b91de..77de49e 100644 (file)
@@ -106,7 +106,8 @@ relationship is returned in a struct that looks like:
 
 sub relationships :Private {
        my( $self, $c ) = @_;
-       my $collation = delete $c->stash->{'collation'};
+       my $tradition = delete $c->stash->{'tradition'};
+       my $collation = $tradition->collation;
        # TODO make this API
        my @pairs = $collation->relationships; # returns the edges
        my @all_relations;