Fwd: Re: [rt-devel] user phone field in Ticket display page

Duane Waddle dwaddle at charter.net
Tue Apr 30 00:34:36 EDT 2002


Meant to copy the list on this.. sorry.

--D

>Date: Mon, 29 Apr 2002 23:13:36 -0500
>To: "Colleen" <colleen at darksideproductions.net>
>From: Duane Waddle <dwaddle at charter.net>
>Subject: Re: [rt-devel] user phone field in Ticket display page
>
>At 4/29/2002 07:31 PM, you wrote:
>
>>Hi,
>>
>>I've hunted through the docs and through ht://dig archives, but I
>>haven't found anything on the following:
>>
>>
>>I want to show the Owner's phone number  (or extension) in the People
>>box on (Display.html).
>>
>>
>>For example, 'Colleen' is the owner of said ticket, but someone may need
>>to call me to give me additional information.  Since there's my home and
>>work number in the user pages (/Admin/Users/Modify.html), it should be
>>pretty straightforward to reference this information on the Display page
>>People box.
>>
>>Has anyone done this?  Any tips?
>
>Odd synchronicity.. I was trying to do the same today.  Mine is partially 
>working.. Below is a diff -C 10 to 
>/path/to/rt/WebRt/Ticket/Elemets/ShowRequestor.
>
>The problem I'm still researching here is that the phone number is not 
>display unless the logged-in user has the AdminUsers right.  I have an 
>unconfirmed feeling that it's a field permission setting RT::User.  [ I 
>can hack up _Accessible in User.pm to make the work phone appear to anyone 
>by changing the perms on it to 'public/read/write' -- I have suspicion 
>this is not the Right Way (tm) ].
>
>Hope this info helps you.
>
>--D
>
>*** /home/rtbuild/rt-2-0-13/webrt/Ticket/Elements/ShowRequestor Tue Nov  6 
>17:07:10 2001
>--- ./ShowRequestor     Mon Apr 29 14:54:21 2002
>***************
>*** 9,28 ****
>--- 9,32 ----
>   $tickets->LimitStatus( VALUE => 'new');
>   $tickets->RowsPerPage(25);
>   $tickets->OrderBy(FIELD => 'Priority',
>                   ORDER => 'DESC');
>   </%PERL>
>
>   % unless ($user->Privileged) {
>   <& /Elements/TitleBoxStart,
>         title => "<a class='inverse' 
> href=\"$RT::WebPath/Admin/Users/Modify.html?id=".$user->id."\">More about 
> $name</a>" &>
>
>+ Name: <% $user-> RealName %> <BR>
>+ Work Phone: <% ( $user->WorkPhone || "N/A" ) %> <BR>
>+
>+ <BR>
>   Comments about this user:<BR>
>   <B><% ($user->Comments || "No comment entered about this user") %></B><BR>
>
>   This user's 25 highest priority tickets:<BR>
>   <UL>
>   %while (my $w=$tickets->Next) {
>   <LI><%$w->Id%>: <a 
> href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$w->id%>"><%$w->Subject%></a> 
> (<%$w->Status%>)
>   %}
>   </UL>
>   <& /Elements/TitleBoxEnd &>





More information about the Rt-devel mailing list