Page 1 of 1

Custom function populating ENUM list

Posted: 20 Oct 2014, 21:40
by partymix
When populating the ENUM field, is there a way to get the bugid inside of the function?

http://www.mantisbt.org/manual/admin.customize.html

i.e. if you have

# --------------------
# To use this in a custom field type "=mine" in the possible values field.
function custom_function_override_enum_mine() {
$t_enum = array();

:

$t_possible_values = implode( '|', $t_enum );

return $t_possible_values;
}

Is there a way to know the ID of the bug that we're currently modifying within this function?