View Issue Details

IDProjectCategoryView StatusLast Update
0023366mantisbtotherpublic2017-09-29 02:46
Reporterhelfy022 Assigned Toatrol  
Status closedResolutionno change required 
Summary0023366: use custom functions to control report/update category list?


This question is somewhat related to the following issue:

Is it possible to use custom functions to present to the user a subset of applicable categories on the report or update bug pages? If it is not possible hide any categories to which a project may be linked (this is the question posed in bug 0012465), curious to know if custom functions can be used to accomplish the goal. Could some form of custom_function_default_enum_categories be set up and called to only present a subset of possible categories? Can that function (or a customized version of it) be called in a way that controls the category pull-down list in the report or update bug pages.

I'm envisioning a means of keeping available for viewing and filtering all categories associated with a project in the mantis_category_table. For new and to-be updated issues, though, it would be great to only make available a subset of the category collection going forward (and only a smaller list is shown). Eager to understand if custom functions can provide this functionality.

Please let me know if you would like any clarifications.

Thanks very much,

TagsNo tags attached.


related to 0012465 new Disable Categories 




2017-09-16 16:21

developer   ~0057739

Custom functions are not the best way to write such kind of extensions.
Writing a plugin is the recommended way for it.

The best way to fix 0012465 is certainly to do it in core MantisBT.
Feel free to send us a Pull Request on


This is not a bug or feature request for MantisBT (you are asking for help on how to develop an extension). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to for links and further details).