Edgewall Software

Ticket #7608: reenable_pages.diff

File reenable_pages.diff, 821 bytes (added by Jörg Schulz <jschulz@…>, 2 years ago)

modification of query.patch

  • trac/ticket/query.py

    diff -r e10510cb0ca1 -r 4308da4c8f58 trac/ticket/query.py
    a b  
    286286            max = self.max 
    287287            if self.group: 
    288288                max += 1 
     289            results=results[self.offset : self.offset+max] 
    289290            if (self.page > int(ceil(float(self.num_items) / self.max)) and 
    290291                self.num_items != 0): 
    291292                raise TracError(_('Page %(page)s is beyond the number of ' 
     
    629630 
    630631        results = Paginator(tickets, 
    631632                            self.page - 1, 
    632                             self.max) 
     633                            self.max, 
     634                            self.num_items) 
    633635         
    634636        if req: 
    635637            if results.has_next_page: