Survey: Fix add option for multiplechoiceother type #4229

pull/4237/head
Angel Fernando Quiroz Campos 4 years ago
parent b577549db4
commit a5874c1d06
  1. 2
      main/survey/survey_question.php

@ -434,7 +434,7 @@ class survey_question
// Adding an answer
if (isset($_POST['buttons']) && isset($_POST['buttons']['add_answer'])) {
if (isset($_REQUEST['type']) && 'multiplechoiceother' === $_REQUEST['type']) {
if (isset($_REQUEST['type']) && 'multiplechoiceother' === $_REQUEST['type'] && $counter > 2) {
$counter--;
}
$counter++;

Loading…
Cancel
Save