Date: Tue, 17 May 2011 19:10:43 +1000
From: David Hicks <firstname.lastname@example.org
Subject: Re: [mantisbt-help] Category becomes Category_id? (John
Content-Type: text/plain; charset="utf-8"
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.