On Thu, Aug 09, 2012 at 01:25:09PM +0200, Gergely Buday wrote:
> The previous custom field works, it is about choosing languages, so
> the same type. I created a custom field following this working
> example. I set it to Global, following again the example. I put some
> new code into UserPrefs.html:
> 
> UserPrefs.html:% my $UserWhenEmail =
> RT::CustomField->new($session{'CurrentUser'});
> UserPrefs.html:% $UserWhenEmail->Load(107);
> 
> where 107 is the id for this new custom field. Also I wrote
> 
>   <tr>
>    <td class="label"><&|/l&>When to e-mail</&>: </td>
>    <td class="value" id="uprefs-intro">
> <& /Elements/EditCustomField, %ARGS, Object => $UserObj, CustomField
> => $UserWhenEmail &>
>            </td>
>   </tr>
> 
> I cleared the cache and restarted apache but only the "When to e-mail"
> label appeared but not the multiple checkboxes. What else should I do
> to make it happen? I filled in the multiple possible options for the
> custom field.

I suggest adding some error checking around your Load and checking the
apache error logs.  Also, ensure that the CF is applied globally and
that rights have been granted to allow editing.

-kevin

Attachment: pgpy1wFkoYP1Z.pgp
Description: PGP signature

Reply via email to