1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tickets Not a Bug Technical details do not display

Discussion in 'Resolved Bug Reports' started by ALfa1, Aug 7, 2017.

  1. ALfa1

    ALfa1 Well-Known Member

  2. NixFifty

    NixFifty Administrator Staff Member

    Have you configured the fields?

    Probably not because I don't think I've written a guide about it.
     
    ALfa1 likes this.
  3. ALfa1

    ALfa1 Well-Known Member

    I assumed that there would be a setting to turn it on or off.
     
  4. Freelancer

    Freelancer Well-Known Member

    Can you write a guide or describe how it works..?
     
  5. NixFifty

    NixFifty Administrator Staff Member

    I plan to, just haven’t had much time for it. I’ll do a brief write up for it tonight.
     
  6. Freelancer

    Freelancer Well-Known Member

    Wouldn't it be easier just to make it an option in the ACP: "Include Technical Data" in the Sidebar? I mean it's always Computer OS, Browser Type, IP Address. I am not aware of other things now.
     
  7. NixFifty

    NixFifty Administrator Staff Member

    Initially, that’s how it was but it became part of a different system that can be extended to pull information from other areas (something I needed for my use case). I’ll see about turning it in to an option but still using the same system under the hood. :)
     
    ALfa1 and Freelancer like this.
  8. NixFifty

    NixFifty Administrator Staff Member

    Alright, as promised...

    Create a new ticket field, place it wherever, give it whatever ID, title it what you like and set your descriptions.

    You need to set the field type to PHP Callback and populate it with one of the following examples:

    NixFifty_Tickets_CustomField_DeviceInfo::getDeviceInfo - Return operating system and browser name
    NixFifty_Tickets_CustomField_DeviceInfo::getOperatingSystem - Return operating system
    NixFifty_Tickets_CustomField_DeviceInfo::getBrowser - Return browser name

    [​IMG]
     
    ALfa1 and Freelancer like this.
  9. Freelancer

    Freelancer Well-Known Member

    Works! Thanks :)
     
  10. ALfa1

    ALfa1 Well-Known Member

    Please add 'Browser Resolution'