Modify ↓
#1297 closed defect (wontfix)
Ticket with empty description is acceptable
| Reported by: | shad | Owned by: | Jonas Borgström |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | devel |
| Severity: | trivial | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Ticket without description field is acceptable.
Attachments (0)
Change History (3)
comment:1 by , 21 years ago
comment:2 by , 21 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
That is by design. Yes, you can create a ticket without a description. So what?
I could imagine a config option for making the description a required field, but it'll not become default behavior.
comment:3 by , 21 years ago
As I can see in my project, all tickets with empty description field are saved only by mistake.
Note:
See TracTickets
for help on using tickets.



The fix is trivial:
diff -ru trac.old/trunk/trac/Ticket.py trac/trunk/trac/Ticket.py --- trac.old/trunk/trac/Ticket.py 2005-03-14 01:05:39.000000000 +0300 +++ trac/trunk/trac/Ticket.py 2005-03-14 23:14:27.000000000 +0300 @@ -284,6 +284,8 @@ def create_ticket(self, req): if not req.args.get('summary'): raise util.TracError('Tickets must contain a summary.') + if not req.args.get('description'): + raise util.TracError('Tickets must contain a description.') ticket = Ticket() ticket.populate(req.args)