Revision 282

Date:
2013/02/21 13:58:41
Author:
ahitrov
Revision Log:
Manual sorting for sections with "default_table_class" field set up
Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/lib/Contenido/Section.pm

     
    266 266
    267 267 my $sorder_;
    268 268 if ($self->_sorted()) {
    269 my @ids = $keeper->get_documents( ids =>1, s => $self->id(), ($self->default_document_class ? (class => $self->default_document_class) : ()), order => ['date', undef], light => 1);
    269 my @ids = $keeper->get_documents( ids =>1, s => $self->id(),
    270 ($self->default_document_class ? (class => $self->default_document_class) : $self->default_table_class ? (table => $self->default_table_class) : ()),
    271 order => ['date', undef], light => 1
    272 );
    270 273 my %ids = map { $_ => 1 } @ids;
    271 274 unless ($self->{_sorted_order}) {
    272 275 $self->{_sorted_order} = join ',', @ids;