#13 Previous button shows on first page of survey

open
nobody
None
5
2006-05-19
2006-05-19
Jason Grout
No

The previous button shows on the first page of a
survey. Patch is:

--- uccass/classes/survey.class.php (revision
562)
+++ uccass/classes/survey.class.php (revision
563)
@@ -342,6 +342,9 @@
case $survey['total_pages']:
$button['next'] = 'Finish';

+ case 1:
+ $show['previous_button'] = FALSE;
+
default:
$show['question'] = TRUE;

Discussion

  • Jason Grout
    Jason Grout
    2006-05-19

    Logged In: YES
    user_id=144233

    It munged my patch. Here it is again.

    --- uccass/classes/survey.class.php (revision 562)
    +++ uccass/classes/survey.class.php (revision 563)
    @@ -342,6 +342,9 @@
    case $survey['total_pages']:
    $button['next'] = 'Finish';

    + case 1:
    + $show['previous_button'] = FALSE;
    +
    default:
    $show['question'] = TRUE;