[rt-users] Fwd: RT::Queue::CustomFields deprecated?

Ruslan Zakirov ruz at bestpractical.com
Tue Sep 16 17:44:57 EDT 2008


forgot to cc list


---------- Forwarded message ----------
From: Ruslan Zakirov <ruz at bestpractical.com>
Date: Wed, Sep 17, 2008 at 1:44 AM
Subject: Re: [rt-users] RT::Queue::CustomFields deprecated?
To: Stephen Turner <sturner at mit.edu>


Stephen is right and deprecation had been done when we implemented CFs
on other records than tickets.

Method can be undeprecated for Queues' custom fields.

On Tue, Sep 16, 2008 at 8:56 PM, Stephen Turner <sturner at mit.edu> wrote:
> On Tue, 16 Sep 2008 10:44:10 -0400, Todd Chapman <todd at chaka.net> wrote:
>
>> Using the CustomFields method on a Queue object issues a deprecation
>> warning. Why should this be? RT::Queue ISA RT::Record, which has a
>> CustomFields method.
>>
>> So I would think RT::Queue::CustomFields would just silently call
>> TicketCustomFields. I realize transaction custom fields complicate this
>> in
>> theory but not in common practice.
>>
>> -Todd
>
> I think the deprecation makes sense - RT::Record->CustomFields gives you
> fields attached to an instance of the record type. So for a RT::Queue
> object this would mean custom fields attached to the queue (not the
> queue's tickets). So I think the deprecated method contradicts the intent
> of Record->CustomFields.
>
> Steve
>
> --
> Stephen Turner
> Senior Programmer/Analyst - SAIS
> MIT IS&T
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>



--
Best regards, Ruslan.



-- 
Best regards, Ruslan.



More information about the RT-Users mailing list