New custom fields patch

Sean McAfee etzwane at schwag.org
Wed Jul 9 00:22:07 UTC 2003


Attached is a patch against bugzilla-2.17.4 that adds the following
features:

*  A new program, editcustomfields.cgi, which allows for administrative
   control of custom fields.  (As in the prior version, it doesn't check for
   appropriate access rights, so be careful.)

*  Custom fields are now presented when bugs are posted and processed.

Apply the patch with "patch -p1" in bugzilla's top-level directory.

Notes:

*  Source bz-cf-schema.txt from a mysql prompt to set up the custom fields
   schema.

*  Source bz-cf-data.txt from a mysql prompt to install some example fields
   in the project with numeric ID 1.

*  You'll need to "chmod u+x editcustomfields.cgi".

*  Changes to existing code and templates are minimal.  Most of the new code
   lives in two new modules, Bugzilla::CustomFields and
   Bugzilla::CustomFields::Util.  Most of the new templates reside in
   template/en/default/custom-field/.

*  Changes to custom fields are not yet logged, pending resolution of the
   discussion of the best way to do that.

*  Other outstanding issues (field sharing between products, etc) have gone
   unaddressed, since they don't affect the way fields are presented when
   bugs are posted and processed.

Comments are welcome.  I'll be tackling querying next.


-- 
Sean McAfee -- etzwane at schwag.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom-fields-patch.gz
Type: application/octet-stream
Size: 24083 bytes
Desc: not available
URL: <http://lists.bugzilla.org/pipermail/developers/attachments/20030708/3dd03c8c/attachment.obj>


More information about the developers mailing list