[Codestriker-commits] CVS update: codestriker/lib/Codestriker/Action ListTopics.pm
Brought to you by:
sits
From: <si...@us...> - 2008-08-30 03:30:44
|
User: sits Date: 08/08/29 20:30:39 Modified: lib/Codestriker/Action ListTopics.pm Log: Get list topics working with nice URLs. Index: ListTopics.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Action/ListTopics.pm,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- ListTopics.pm 15 Aug 2008 06:30:39 -0000 1.36 +++ ListTopics.pm 30 Aug 2008 03:30:39 -0000 1.37 @@ -292,7 +292,7 @@ my $sbody = $http_input->get('sbody') || 0; my $sfilename = $http_input->get('sfilename') || 0; my $projectid = $http_input->get('projectid'); - + # If $sproject has been set to -1, then retrieve the value of the projectid # from the cookie as the project search value. This is done to facilate # integration with other systems, which jump straight to this URL, and @@ -301,8 +301,8 @@ $sproject = (defined $projectid) ? $projectid : ""; } - # Only show open topics if codestriker.pl was run without parameters. - if (defined($http_input->{query}->param) == 0 || !defined($sstate)) { + # Default to show open topics if sstate is not defined. + if (!defined($sstate)) { $sstate = 0; } @@ -327,6 +327,7 @@ my $topic_sort_change = $http_input->get('topic_sort_change'); my $topicsort = $http_input->get('topicsort'); + return () unless defined $topicsort; my @sort_order = split(/,/,$topicsort); # this is always from the cookie. if (defined $topic_sort_change && $topic_sort_change ne "") { |