Custom Functions Enumeration alternative?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
ShadowKatmandu
Posts: 20
Joined: 19 May 2014, 19:46

Custom Functions Enumeration alternative?

Post by ShadowKatmandu »

Following the documentation, I created 2 functions in core/custom_functions_api.php for enumerating 2 custom fields. However, whenever I do an upgrade to MantisBT, this file gets overwritten and I have to re-add my custom functions. Is there a way to add custom enumeration functions in a plugin that will be recognized for populating custom fields?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom Functions Enumeration alternative?

Post by atrol »

ShadowKatmandu wrote: 17 Sep 2019, 15:10 Following the documentation, I created 2 functions in core/custom_functions_api.php for enumerating 2 custom fields.
Where did you find this in documentation?

You should use config/custom_functions_inc.php for that.
Please use Search before posting and read the Manual
ShadowKatmandu
Posts: 20
Joined: 19 May 2014, 19:46

Re: Custom Functions Enumeration alternative?

Post by ShadowKatmandu »

Thank you. I don't recall where I read that; it was a LONG time ago. I likely misread "config" for "core" and got confused after that.
Post Reply