Help Desk Software & Beyond
May 17, 2012, 06:02:20 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [REQ] Make the status filter "Solved" value show all closed tickets  (Read 393 times)
TranServ
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: October 17, 2011, 06:30:51 AM »

Hi

I would like to be able to view all closed tickets using the drop down filter on the ticket list page. Currently it is hiding tickets older than the number of days specified in the setup page.

This is fine for the helpdesk operator's initial ticket list view but I need the drop-down filter to show me everything.

Any idea as to how I can achieve this?

Thanks
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: October 17, 2011, 12:16:33 PM »

Quote
Currently it is hiding tickets older than the number of days specified in the setup page.

Simply go to the /setup.cgi program and change "Hide solved tickets after" to something huge like 3650.

3650 = 10 years.

Alternatively, you can change this line in your ttxcfg.cgi file.

hideoldsolved=3650
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
TranServ
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #2 on: October 17, 2011, 12:47:22 PM »

Hi Sparky

Thanks for your reply.

This would show all the closed tickets everytime that I go to that page. What I am actually after is:
1) The initial page obeying the "Hide solved tickets after" rule
2) The "Solved" drop down filter ignoring the "Hide solved tickets after" rule and displaying everything when the submit button is pressed.

Thanks
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: October 17, 2011, 12:54:09 PM »

Yes, you would need a modification to do this.

Do you understand Perl?

You would search all the modules for each instance of "hidesolved", determine function of that code, and insert some logic that looks at your pull-down option where appropriate.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
TranServ
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #4 on: October 18, 2011, 06:15:54 AM »

Ok, think I may have cracked it:

I am running TTX version 3.01
Edit the file called TTXDesk.pm as follows

find:
Code:
if ($query->param('status') ne undef) {
    my $f;
    $f->{col} = 'status';
    $f->{expr} = "^".$query->param('status')."\$";
    push @filter, $f;
  }
my $hideoldsolved;
  if ($query->param('text') ne undef) {

add the code in green, remove the code in red:

my $hideoldsolved; 
if ($query->param('status') ne undef) {
    my $f;
    $f->{col} = 'status';
    $f->{expr} = "^".$query->param('status')."\$";
$hideoldsolved = $cfg->set('hideoldsolved', '');   
push @filter, $f;
  }
my $hideoldsolved; 
if ($query->param('text') ne undef) {
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #5 on: October 18, 2011, 11:59:28 AM »

Ok, think I may have cracked it:

I am running TTX version 3.01
Edit the file called TTXDesk.pm as follows

find:
Code:
if ($query->param('status') ne undef) {
    my $f;
    $f->{col} = 'status';
    $f->{expr} = "^".$query->param('status')."\$";
    push @filter, $f;
  }
my $hideoldsolved;
  if ($query->param('text') ne undef) {

add the code in green, remove the code in red:

my $hideoldsolved; 
if ($query->param('status') ne undef) {
    my $f;
    $f->{col} = 'status';
    $f->{expr} = "^".$query->param('status')."\$";
$hideoldsolved = $cfg->set('hideoldsolved', '');   
push @filter, $f;
  }
my $hideoldsolved; 
if ($query->param('text') ne undef) {


I don't know....

Please explain how that differs from just permanently removing "hideoldsoved" from the config file manually.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 18 queries.