• sections.html

    620 621  
    218 218 my $filter = $m->comp('/contenido/components/context.msn', name => 'filter');
    219 219 my $profile = $m->comp('/contenido/components/context.msn', name => 'profile');
    220 220
    221 unless (defined $request->{section_accesses}->{$id})
    222 {
    223 $request->{section_accesses}->{$id} = $user->get_section_access($id);
    224 }
    225 my $section_access = $request->{section_accesses}->{$id};
    226
    227 my (@documents, $total);
    228
    229 my $s = $owner->id;
    230 my $sorted = $owner->_sorted();
    231 $s .= ",$filter" if ($filter > 0);
    232
    233 221 if ($update) {
    234 222 my $return_params = join ('&', map { $_.'='.$filter_params{$_} } grep { $_ ne 's' } keys %filter_params );
    235 223 my %updated;
     
    410 398 $m->redirect("sections.html?id=".$id.($return_params ? '&'.$return_params : ''));
    411 399 }
    412 400
    401 unless (defined $request->{section_accesses}->{$id}) {
    402 $request->{section_accesses}->{$id} = $user->get_section_access($id);
    403 }
    404 my $section_access = $request->{section_accesses}->{$id};
    405
    406 my (@documents, $total);
    407
    408 my $s = $owner->id;
    409 my $sorted = $owner->_sorted();
    410 $s .= ",$filter" if ($filter > 0);
    411
    413 412 my %filter=();
    414 413 my $nothing_found = 0;
    415 414 my %order = (not $class and $owner->order_by) ? (order_by => $owner->order_by) : (order => ['date','direct']);