Custom functions doesn't work

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
misu
Posts: 18
Joined: 22 Sep 2008, 19:52

Custom functions doesn't work

Post 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
atrol
Site Admin
Posts: 8562
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom functions doesn't work

Post 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 ?
Please use Search before posting and read the Manual
misu
Posts: 18
Joined: 22 Sep 2008, 19:52

Re: Custom functions doesn't work

Post 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.
Post Reply