my $collation = $tradition->collation;
# Stash text direction to use in JS.
- $c->stash->{'direction'} = $collation->direction;
+ $c->stash->{'direction'} = $collation->direction || 'BI';
# Stash the relationship definitions
$c->stash->{'relationship_scopes'} =
$m->save($collation);
- if ($collation->direction eq 'RL') {
- @nodes = reverse @nodes;
- }
-
$c->stash->{'result'} = {
success => 1,
nodes => \@nodes,