Ticket #1605: paginate.diff

File paginate.diff, 0.8 kB (added by droc, 10 months ago)

A patch that fixes the issue

  • paginate.py

    old new  
    289289        # and in the template.  I'm not removing it now because I don't want 
    290290        # to break the API. 
    291291        order = order or None 
    292         self.input_values[self.var_name + '_tgp_no'] = page 
     292        input_values = self.input_values.copy() 
     293        input_values[self.var_name + '_tgp_no'] = page 
     294 
    293295        if order: 
    294             self.input_values[self.var_name + '_tgp_order'] = order 
     296            input_values[ self.var_name + '_tgp_order'] = order 
    295297 
    296         return turbogears.url('', self.input_values) 
     298        return turbogears.url('', input_values) 
    297299 
    298300def _select_pages_to_show(current_page, page_count, max_pages): 
    299301    pages_to_show = []