From: Tara L Andrews Date: Tue, 10 Jun 2014 09:44:42 +0000 (+0200) Subject: bugfix for returning edited stemma X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2Fstemmaweb.git;a=commitdiff_plain;h=db0ac887720c37acee1e79201ae667ad0bd86401 bugfix for returning edited stemma --- diff --git a/lib/stemmaweb/Controller/Root.pm b/lib/stemmaweb/Controller/Root.pm index 11e54af..7159680 100644 --- a/lib/stemmaweb/Controller/Root.pm +++ b/lib/stemmaweb/Controller/Root.pm @@ -449,7 +449,7 @@ sub stemma :Local :Args(2) { $c->stash->{'result'} = $stemma->as_svg(); $c->forward('View::SVG'); } else { # JSON - $c->stash->{'result'} = { _stemma_info( $stemma, $stemmaid ) }; + $c->stash->{'result'} = _stemma_info( $stemma, $stemmaid ); $c->forward('View::JSON'); } }