I’ve created a new column in Tickets, named Client_id. Can someone
please let me know where/what files I need to edit to make this work?
For example, in the rt/WebRT/html/Ticket/Create.html file, I’ve begun
adding the blank form fields for this, but where does the sql INSERT
happen?
Thanks!
Colleen Noonan
I’ve created a new column in Tickets, named Client_id. Can someone
please let me know where/what files I need to edit to make this work?
By ‘work’, you mean ‘How can I refer to it in my code?’, yes?
As RT depends on DBIx::SearchBuilder, you get to use magic in the
_ClassAccessible method of RT::Ticket, such as:
Client_id => { 'read' => 1, 'write' => 1 },
After adding the above, a given RT::Ticket object then inherits two extra
methods from SearchBuilder, being ->Client_id() and ->SetClient_id() for
listing and setting the Client_id field on a given ticket.
You can then also use Client_id in RT::Tickets->Limit() when searching.
For example, in the rt/WebRT/html/Ticket/Create.html file, I’ve begun
adding the blank form fields for this, but where does the sql INSERT
happen?
You’ll need to ensure that RT::Ticket->Create ‘knows’ about Client_id
first.
Bruce Campbell RIPE
Systems/Network Engineer NCC
www.ripe.net - PGP562C8B1B Operations