[rt-users] putting a custom field in place
Kevin Falcone
falcone at bestpractical.com
Mon Aug 13 11:01:02 EDT 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120813/1ceb8f7e/attachment.sig>
More information about the rt-users
mailing list