[Codestriker-commits] CVS update: codestriker/template/en/default listtopics.html.tmpl
Brought to you by:
sits
|
From: <si...@us...> - 2004-11-23 02:47:34
|
Created Codestriker topic at: http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=8578125&action=view&brmode=1&fview=-1 User: sits Date: 04/11/22 18:47:10 Modified: lib/Codestriker/Action SubmitEditTopicsState.pm template/en/default listtopics.html.tmpl Log: Ensure Obsoleted and Deleted states can't be selected from ListTopics screen. Index: SubmitEditTopicsState.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Action/SubmitEditTopicsState.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- SubmitEditTopicsState.pm 21 Nov 2004 05:00:08 -0000 1.7 +++ SubmitEditTopicsState.pm 23 Nov 2004 02:47:06 -0000 1.8 @@ -38,7 +38,7 @@ } # The main topic list page does not allow deletes, so block this out. - if ($topic_state eq "Deleted") { + if ($topic_state eq "Deleted" || $topic_state eq "Obsoleted") { $http_response->error("This function has been disabled"); } Index: listtopics.html.tmpl =================================================================== RCS file: /cvsroot/codestriker/codestriker/template/en/default/listtopics.html.tmpl,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- listtopics.html.tmpl 21 Nov 2004 05:00:10 -0000 1.30 +++ listtopics.html.tmpl 23 Nov 2004 02:47:09 -0000 1.31 @@ -81,10 +81,14 @@ Change state: <select name="topic_state"> [% FOREACH state = states %] - [% IF state == default_state %] - <option selected value="[% state %]">[% state %]</option> - [% ELSE %] - <option value="[% state %]">[% state %]</option> + + [%# Obsoleted and Deleted states aren't available for selection. #%] + [% IF state != 'Obsoleted' && state != 'Deleted' %] + [% IF state == default_state %] + <option selected value="[% state %]">[% state %]</option> + [% ELSE %] + <option value="[% state %]">[% state %]</option> + [% END %] [% END %] [% IF state == 'Obsoleted' %] |