Skip to content
This repository
Browse code

Fixed pagebreak issue.

  • Loading branch information...
commit d36ceb7d7160af07e8ecf4d0cb490932469ef9bf 1 parent cafaa20
Marc Worrell authored October 25, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  modules/mod_survey/mod_survey.erl
4  modules/mod_survey/mod_survey.erl
@@ -112,7 +112,7 @@ observe_admin_edit_blocks(#admin_edit_blocks{id=Id}, Menu, Context) ->
112 112
 
113 113
 
114 114
 %% @doc Check if the given block is a survey question with submit button
115  
-observe_survey_is_submit(#survey_is_submit{block=Q}, Context) ->
  115
+observe_survey_is_submit(#survey_is_submit{block=Q}, _Context) ->
116 116
     case proplists:get_value(type, Q) of
117 117
         <<"survey_button">> -> true;
118 118
         <<"survey_", _/binary>> -> proplists:get_value(input_type, Q) =:= <<"submit">>;
@@ -344,7 +344,7 @@ render_next_page(Id, PageNr, Direction, Answers, History, Context) ->
344 344
                     true ->
345 345
                         case State of
346 346
                             in_q -> fetch_question_name(Qs, Name, Nr+1, in_pagebreak);
347  
-                            in_page_break -> fetch_question_name(Qs, Name, Nr, in_pagebreak)
  347
+                            in_pagebreak -> fetch_question_name(Qs, Name, Nr, in_pagebreak)
348 348
                         end;
349 349
                     false ->
350 350
                         fetch_question_name(Qs, Name, Nr, in_q)

0 notes on commit d36ceb7

Please sign in to comment.
Something went wrong with that request. Please try again.