Changeset 4630


Ignore:
Timestamp:
06/24/11 18:29:10 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #2030 - Erro na Navegação por Contatos Pessoais.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/contactcenter/inc/class.ui_data.inc.php

    r4629 r4630  
    12211221                                { 
    12221222                                        //echo 'N_entries: '.$n_entries.'<br>'; 
    1223                                         $this->page_info['n_pages'] = ceil(($n_entries/($this->page_info['n_cards']) && !$dontPaginate ? $this->page_info['n_cards'] : 1)); 
     1223                                        $this->page_info['n_pages'] = $dontPaginate ? 1 : ceil($n_entries/$this->page_info['n_cards']); 
    12241224                                } 
    12251225                                else 
     
    12911291                                        $this->page_info['actual_letter']  = $letter; 
    12921292                                        $this->page_info['actual_entries'] = $ids; 
    1293                                         $this->page_info['n_pages'] = ceil((count($ids)/($this->page_info['n_cards']) && !$dontPaginate ? $this->page_info['n_cards'] : 1)); 
     1293                                        $this->page_info['n_pages'] = $dontPaginate ? 1 : ceil(count($this->page_info['actual_entries'])/$this->page_info['n_cards']); 
    12941294                                } 
    12951295                        } 
Note: See TracChangeset for help on using the changeset viewer.