On 05/16/2011 09:28 AM, Jon Hardcastle wrote:
> Hi,
>
> We have just upgraded from Mantis 1.1.7 to MantisBT 1.2.4
>
> and some users have noticed that 'category' no longer appears on any of
> the reports (we have quite alot of tailored reports)
>
> I dug around in the code and config files and found something called
> 'category_id'
>
> Does anyone know if these are one and the same? and if so why it changed
> names?
>
> Is there anyway to bulk change all of our references?
>
> Thanks.

Basically, 1.2 introduced two new concepts for categories:  global 
categories that can be used in any project, and the ability for child 
projects to inherit categories from parent projects.  In order to 
support those features, categories needed to become their own separate 
entities, and issues needed to be updated to then reference those 
entities rather than store a copy of the category name.

What you see as the category_id is a foreign key reference to 
mantis_category_table.  Your reports will need to then look up the row 
in that table that matches the id specified by the category_id column if 
it wants to show the category name.

If you would like a code reference to use, you can look in the file 
mantisbt/core/category_api.php for a set of functions to retrieve that 
sort of information.

Cheers

-- 
John Reese
noswap.com

------------------------------------------------------------------------------
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
mantisbt-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Reply via email to