Modify

Opened 17 years ago

Closed 16 years ago

#1664 closed defect (worksforme)

Wrong ticket number in custom query

Reported by: tlr@… Owned by: Noah Kantrowitz
Priority: normal Component: PrivateTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

The number of results isn't recalculated.

Attachments (1)

Picture 1.png (20.9 KB) - added by tlr@… 17 years ago.

Download all attachments as: .zip

Change History (3)

Changed 17 years ago by tlr@…

Attachment: Picture 1.png added

comment:1 Changed 17 years ago by Joachim Hoessler

The following patch fixes the problem for me:

Index: query.py
===================================================================
--- query.py	(revision 2647)
+++ query.py	(working copy)
@@ -54,7 +54,10 @@
 
             # Reinsert the data
             req.hdf['query.results'] = new_results
-                
+
+            # set proper result length
+            req.hdf['query.num_matches'] = len(new_results)
+               
         return template, content_type
 
     # Content conversion insanity

comment:2 Changed 16 years ago by Noah Kantrowitz

Resolution: worksforme
Status: newclosed

No longer an issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.