From: Tara L Andrews Date: Fri, 3 Feb 2012 19:54:13 +0000 (+0100) Subject: bugfix from dispatcher X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6d124a83fff44268fb9e93c685c0b1402d2b0b6b;p=scpubgit%2Fstemmaweb.git bugfix from dispatcher --- diff --git a/lib/stemmaweb/Controller/Relation.pm b/lib/stemmaweb/Controller/Relation.pm index 25b91de..77de49e 100644 --- a/lib/stemmaweb/Controller/Relation.pm +++ b/lib/stemmaweb/Controller/Relation.pm @@ -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;