bugfix for returning edited stemma
Tara L Andrews [Tue, 10 Jun 2014 09:44:42 +0000 (11:44 +0200)]
lib/stemmaweb/Controller/Root.pm

index 11e54af..7159680 100644 (file)
@@ -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');
        }
 }