From df09e22308112fd981839ae1bafd4f83e6135f28 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 17 Jun 2010 16:00:57 +0200 Subject: [PATCH] store new columns in $loaded This allows sorting to do the right thing (e.g. work) --- lib/MojoFacets/Data.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/MojoFacets/Data.pm b/lib/MojoFacets/Data.pm index c460d51..96ea060 100644 --- a/lib/MojoFacets/Data.pm +++ b/lib/MojoFacets/Data.pm @@ -620,7 +620,10 @@ sub items { } next if grep { /$column/ } @columns; unshift @columns, $column; - $self->session('columns', [ @columns ]) if $commit; + if ( $commit ) { + $self->session('columns', [ @columns ]); + $loaded->{$path}->{columns} = [ @columns ]; + } } } -- 2.20.1