Opened 13 years ago
Closed 12 years ago
#10966 closed defect (worksforme)
TypeError: query() takes at least 4 arguments (3 given)
| Reported by: | Owned by: | Chris Nelson | |
|---|---|---|---|
| Priority: | high | Component: | TracJsGanttPlugin |
| Severity: | major | Keywords: | query function error |
| Cc: | Trac Release: | 0.12 |
Description
see error message printscreen in attachment
How to reproduce: assign project to ticket that had none before (ticket created before SimpleMultiProject plugin installation) Modification is saved (project assigned), but error page is shown
Attachments (1)
Change History (5)
Changed 13 years ago by
| Attachment: | deb 20130322 14.10.jpg added |
|---|
comment:1 Changed 13 years ago by
Correction on 'how to reproduce': every time changes are saved to a ticket without a project (SimpleMultiProject plugin) attached (not only when changing project as stated initially)
comment:2 Changed 12 years ago by
At r12750, the line in question is:
return self.pm.query(options, set())
and query() is defined as:
def query(self, req, options, fields, ticket=None):
so it seems that the fields parameter is missing.
At r13361, I see:
def query(self, options, fields, req=None):
and
return self.pm.query(options, set())
so:
optionsis providedfieldsis an empty setreqdefaults to None.
This seems fine.
Please retest with current code.
comment:3 Changed 12 years ago by
| Status: | new → assigned |
|---|
comment:4 Changed 12 years ago by
| Resolution: | → worksforme |
|---|---|
| Status: | assigned → closed |
No response from OP in 8 months. Closing.



printscreen of the error page