diff --git a/app/controllers/polls_controller.rb b/app/controllers/polls_controller.rb index 79b7fbd16..4348b3bfc 100644 --- a/app/controllers/polls_controller.rb +++ b/app/controllers/polls_controller.rb @@ -911,7 +911,7 @@ class PollsController < ApplicationController end error_question = error_question.reject(&:blank?) if error_question.reject(&:blank?).length > 0 - normal_status(-1, word_wrap("#{error_question.join("\n")}")) + normal_status(-1, "#{error_question.join(";")}") else poll_user_current = @poll.poll_users.find_by_group_ids(current_user.id).first poll_user_params = { diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js index c3447c425..651a8b131 100644 --- a/public/react/src/modules/courses/poll/PollNew.js +++ b/public/react/src/modules/courses/poll/PollNew.js @@ -2295,7 +2295,7 @@ class PollNew extends Component { readOnlys: "readOnly", cancellation: false, }) - + window.location.href = `/courses/${coursesId}/polls/${result.data.data.id}/edit`; }) } else {