Modify ↓
Opened 18 years ago
Closed 18 years ago
#1664 closed defect (worksforme)
Wrong ticket number in custom query
| Reported by: | 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)
Change History (3)
Changed 18 years ago by
| Attachment: | Picture 1.png added |
|---|
comment:1 Changed 18 years ago by
Note: See
TracTickets for help on using
tickets.



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