Le 01/06/2016 11:53, Vegard Vesterheim a écrit :
>
>
> I tried to register a new User Custom Field, naming the Field
> 'PreferEditDisplay', and allowing two values for the field: 'Edit' or
> 'Display'. I have registered the value 'Edit' for a specific user for
> this Custom Field, but I am not able to extract the value
> programmatically. I expected the following code to work, but I get no
> values back.
>
> my $UserObj = RT::User->new( $session{'CurrentUser'} );
> my $cf_values = $UserObj->CustomFieldValues('PreferEditDisplay');
>
You just wan't:
my $cf_value = $UserObj->FirstCustomFieldValue('PreferEditDisplay');
I think.
---------
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016