Page 1 of 1

Custom Functions Enumeration alternative?

Posted: 17 Sep 2019, 15:10
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?

Re: Custom Functions Enumeration alternative?

Posted: 18 Sep 2019, 08:51
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.

Re: Custom Functions Enumeration alternative?

Posted: 18 Sep 2019, 13:32
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.