Page 1 of 1

Custom functions doesn't work

Posted: 03 Dec 2011, 21:01
by misu
Hi all,
I want to use custom function for dynamic enums. I've tried the example, but it doesn't work. Is there some switch to enable these functions? In custom_functions_inc.php - I've this source code:

Code: Select all

<?php
function custom_function_override_enum_categories() {
    $t_possible_values = "A|B";

    return $t_possible_values;
}
?>
but when I add new bug - there is still categories defined in project?

Thank for any advice

MiSu

Re: Custom functions doesn't work

Posted: 03 Dec 2011, 23:04
by atrol
Seems that you expect the standard field "Category" to be changed?
Are you aware that this is the way to populate custom fields of type enum where possible values is set to =categories ?

Re: Custom functions doesn't work

Posted: 04 Dec 2011, 21:51
by misu
Thank a lot.
I wanted change custom field - but I used category as a text example. It was my misunderstanding of funcionality. Now it works fine.