Re: Category becomes Category_id? (John Reese)
David Hicks <[email protected]> Tue, 17 May 2011 19:10:43 +1000
| Newsgroups | gmane.comp.bug-tracking.mantis.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2011-05-17 at 09:09 +0100, Jon Hardcastle wrote: > We aren't generating reports in code. But we have tailored some of the > view screens and the csv export etc. > > How/what should one do for category in these cases? If I understand your question correctly, you're likely going to want to use the category_get_name() function from category_api. You may also want to use category_get_id_by_name() - although beware that this is prone to abuse... you *should* be using category IDs internally within your code instead of category names. The only time you should ever have to deal with category names is when you're doing something related to the user interface (showing category names), category management (checking duplicate names when adding categories) and perhaps importing and exporting as well. Regards, David ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ mantisbt-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mantisbt-help
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABCgAGBQJN0juZAAoJEFng57dyjzQ1PDYP/R3PxcC9V4xCl5yFODlqItMz 0XV0QJK8+f9gJ9dZp1Ht83LbfmUlU3W305cpTP9kkSh6bxS1xrD124hxHbY5Oixn Un249FzF2+aF3E/nalIamdfcesJdJiVFDcTItuZF6jSJLA1E8HvJ/Sxk2whuBbtr 271pgH5Q4noFAxfp/B0VqmAFOe1Kb5eF//u9BgNM8nqX9KgSndxZj8+v0x0kumiJ DRq7o4vfaUZPmoWmVq3ch5y3ch83cJgH54zyeg/ke+8ynq8xb96HqhCVbLujHKQf 3qyO9fAf+u3les7pRazb2+fy9cZDKF8Z1iGJVV8R/Vt1rZMs18gA73d232l9WXqe sGAV9PFw/BTlGn9ZkhvmFg/NqdetH4xumvGxo4FfDgM3URLeh/HY1QMM99ZJWiwg IJG345G+QUU/UyRR47pA3tFLYlG8rxXuGDJ8+vdOPWuv1Q60z3zbupHdcte50tWl +VzYfEgb8geN7Y7nZyHtPD7mIaTsftZbsLhF53QxgdifuSeOyVtXDFdaz01x9nB0 +OR8DO0Bk/THhAKSaicjzIaGeqQ4sm590YmaZD2Qo0ZxpZF+X5Et7VbhgOwpCqxs 0fEc2/VZSHU9Lk1iRmMqQpRWXtFvKpwx0XlJg2BgtmkFPJOcotnigyE8+wftQkbu g5/SRbLWdm3xuqASMrLE =CKAZ -----END PGP SIGNATURE-----