|Version 2 (modified by sambloomquist, 8 years ago) (diff)|
Required Field Validation in Trac
With these few simple changes, you can designate ticket fields (including custom ticket fields) as required in the trac.ini file.
If you have any issues, create a new ticket.
Download the source, unzip to a temporary location, and copy the api.py, model.py, and web_ui.py files into yourpythoninstallation/lib/site-packages/trac/ticket
Note that these changes were made to the 0_9_5 source. If you've got a different version and want to see what the specific changes are in order to make them by hand, check out revision .
Download the zipped source from here.
Once you've patched the three python files you can use this patch by adding fieldname.required = true to the trac.ini file:
milestone.required = true