Ad Widget

Collapse

Any way to change "show operational data" GUI default

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #1

    Any way to change "show operational data" GUI default

    I can make "with problem name" default on my dashboard, but it seems when I go to the Problem screens, I always back to None.
  • gryan337
    Junior Member
    • Dec 2020
    • 3

    #2
    I actually was just trying to figure this out myself. I'm running version 5.0.3 and you need to modify the php in app/controllers/CControllerProblemView.php. Assuming you haven't already modified anything, on line 318

    change:
    'show_opdata' => CProfile::get('web.problem.filter.show_opdata', 0)

    to this:
    'show_opdata' => CProfile::get('web.problem.filter.show_opdata', OPERATIONAL_DATA_SHOW_SEPARATELY)


    I tested this with a new user, who had never logged in to the web frontend before and it successfully defaulted to 'Separately' for that user. I had problems confirming this as myself even after completely wiping my browser history, cache, cookies, etc. For some reason, when you open that Problem screen the first time the default value of '0', which is to not show any operational data, sticks around for some period of time, regardless of clearing your history (in my case anyway).

    Let me know if this doesn't work.

    Comment

    Working...