Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

User Lookup Popup

Hi all,

Is there any solution to get rid the User Lookup in Staff Panel when we click New Ticket will direct to ..  tickets.php?a=open&uid=2 ?

I search and modified file as below:-
user.tmpl.php
user-lookup.tmpl.php
ticket-open.inc
scp.js
ajax.user.php

My plan is to direct from tickets.php to ticket.php?a=open&uid=2? without need to add user and don't want popup.

Comments

  • please let me know if you need more information about this. thank you.
  • edited January 2014
    It's beyond my comprehension why you would want to do this but ... in version 1.8.0.2 you can add $user = User::lookup(2); to the very top of ticket-open.php.
  • hi peter,

    actually the idea is to use osTicket as internal helpdesk. so, our osTicket don't need client to raise ticket. so, only register staff will create the ticket. 

    by the way I just found out to disable the popup. if it will help others I will share it here. thank you.
  • Might as well.  I'm sure that you aren't the only person that doesn't want to send emails to their users and let them open tickets. :)
  • hi peter, actually the idea is to use osTicket as internal helpdesk. so, our osTicket don't need client to raise ticket. so, only register staff will create the ticket.  by the way I just found out to disable the popup. if it will help others I will share it here. thank you.
    how you disable the popup ?

    thanks in advance 
  • hello eridanx,

    With disabling the user lookup popup you later will need to set autofill textfield for user (name, email, dept). You need to be clear with your flow.

    For me i just comment out some function in scp.js 

    from line 408 until line 450

     /*
        $(document).on('click', 'a#new-ticket', function(e) {
         ...
               });
         });

     $.userLookup = function (url, callback) {

         $('.dialog#popup .body').load(url, function () {
             ...
                            }
                        }
                    })
           ..
                });
             });
         };
     */

    in /upload/include/staff/ticket.open.inc 

    I also comment out this lines

    <!--  <a href="#" onclick="javascript:
    ...             
    <i class="icon-edit"></i> Change</a> -->



  • Thank you !
Sign In or Register to comment.