take path from params in /data/items
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 8 Jul 2010 15:58:41 +0000 (17:58 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 8 Jul 2010 15:58:41 +0000 (17:58 +0200)
This allows us to switch to different dataset on commit of changes, but
it DOESN'T change column definition under assumption that you are
applying changes to dataset which has more-or-less same structure

lib/MojoFacets/Data.pm

index 314e72e..ad24d7a 100644 (file)
@@ -622,7 +622,7 @@ sub items {
                warn "show $show\n";
        }
 
-       my $path = $self->session('path');
+       my $path = $self->_param_scalar('path');
 
        my @columns = $self->_param_array('columns');
        $self->redirect_to('/data/columns') unless @columns;