Osticket: v1.10-RC.2: Ticket Info Screen missing User phone Number

Created on 31 Aug 2015  路  7Comments  路  Source: osTicket/osTicket

In the ticket system info view, the User phone number would be a great addition to have. see below.

screen_shot_2015-08-31_at_10_17_25_am

question

Most helpful comment

Hello,
I know it is an old issue but I also needed the phone number in "ticket_info".
If you need just add in include/staff/ticket-view.inc.php :

<tr>
                    <th><?php echo __('Phone'); ?>:</th>
                    <td>
                        <span id="user-<?php echo $ticket->getOwnerId(); ?>-phone"><?php echo $ticket->getPhoneNumber(); ?></span>
                    </td>
</tr>

after

             <tr>
                   <th><?php echo __('Email'); ?>:</th>
                   <td>
                      <span id="user-<?php echo $ticket->getOwnerId(); ?>-email"><?php echo $ticket->getEmail(); ?></span>
                    </td>
              </tr>

All 7 comments

The code for this field isn't anymore in the ticket-view.inc.php in 1.10. In 1.9.x there was a according section for it. Maybe that section was forgotten during the adjustments for 1.10..

The phone number was dropped to make room for the user's Organization, which is shown when the user is a member of an organization

Hello,
I know it is an old issue but I also needed the phone number in "ticket_info".
If you need just add in include/staff/ticket-view.inc.php :

<tr>
                    <th><?php echo __('Phone'); ?>:</th>
                    <td>
                        <span id="user-<?php echo $ticket->getOwnerId(); ?>-phone"><?php echo $ticket->getPhoneNumber(); ?></span>
                    </td>
</tr>

after

             <tr>
                   <th><?php echo __('Email'); ?>:</th>
                   <td>
                      <span id="user-<?php echo $ticket->getOwnerId(); ?>-email"><?php echo $ticket->getEmail(); ?></span>
                    </td>
              </tr>

Yes, I spent 1 hour to find the right file and line. I made research on github and google but your issue never showed up.
I hope it will help other people to find answer with different keywords.

simon-3t, thanks very much for your simple and clear write-up. Just what I needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markus4000 picture markus4000  路  4Comments

ghost picture ghost  路  6Comments

alansebastian picture alansebastian  路  3Comments

F3000 picture F3000  路  5Comments

cervedgroup picture cervedgroup  路  5Comments