canvas-lms/app/models/quizzes
Spencer Olson b219df063b set boolean values to false before saving if nil
closes CNVS-35932
closes CNVS-35931

test plan:

1. Create an announcement.
2. Go to the announcements index page at
   /courses/:course_id/announcements.
3. Click the settings cog and select 'Close for Comments'.
4. Verify there is no error.
5. Refresh the page and verify the announcement has been closed for
   comments (there should be a lock icon to the left of the settings
   cog).

Change-Id: Ide9559622460e59dc089291345b4c1da8f0e12d2
Reviewed-on: https://gerrit.instructure.com/106609
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Neil Gupta <ngupta@instructure.com>
2017-03-28 19:51:46 +00:00
..
log_auditing use preload/eager_load instead of includes 2015-09-08 20:32:05 +00:00
quiz_question ruby 2.4: fix another BigDecimal 2017-03-15 16:00:05 +00:00
quiz_question_builder optimize and handle race conditions for generated quiz questions 2016-10-28 18:46:28 +00:00
quiz_regrader Fix quiz questions from banks 2014-12-15 17:38:13 +00:00
quiz_statistics Guard against malformed formula questions in Quiz stats 2016-06-20 20:19:04 +00:00
quiz_submission rails 5: fix quewstion reference data fixer 2017-03-02 19:59:58 +00:00
outstanding_quiz_submission_manager.rb rails 4.2: misc spec fixes 2016-01-18 21:45:39 +00:00
quiz.rb set boolean values to false before saving if nil 2017-03-28 19:51:46 +00:00
quiz_eligibility.rb rails 5: find and fix lots of deprecation warnings [ci verbose] 2017-03-16 16:03:51 +00:00
quiz_extension.rb Course Quiz Extension: A course level quiz extension API 2014-09-05 16:26:07 +00:00
quiz_group.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_outcome_result_builder.rb prevent result creation for 0 point and non-assignment quizzes 2017-01-26 15:10:34 +00:00
quiz_participant.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
quiz_question.rb master courses: do some locked restrictions+icons for quizzes 2017-01-18 14:47:37 +00:00
quiz_question_builder.rb fix some ruby 2.4 deprecations 2017-01-25 21:53:37 +00:00
quiz_question_data_fixer.rb fix Performance/ReverseEach issue 2015-04-27 20:53:43 +00:00
quiz_question_link_migrator.rb use preload/eager_load instead of includes 2015-09-08 20:32:05 +00:00
quiz_question_regrade.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_regrade.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_regrade_run.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_sortables.rb namespace all of quiz into quizzes module 2014-02-18 22:17:13 +00:00
quiz_statistics.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_statistics_service.rb adds ability to filter quiz statistics by section 2015-09-23 23:54:28 +00:00
quiz_student_visibility.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_submission.rb rails 5: controllers q-r 2017-03-07 04:08:40 +00:00
quiz_submission_attempt.rb namespace all of quiz into quizzes module 2014-02-18 22:17:13 +00:00
quiz_submission_event.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_submission_event_partitioner.rb wrap partition management in a transaction 2016-08-16 15:00:27 +00:00
quiz_submission_history.rb quiz submission history should always show latest submission 2015-10-20 13:24:30 +00:00
quiz_submission_service.rb rails 5: apis/v1 c-q 2017-03-08 19:07:41 +00:00
quiz_submission_snapshot.rb remove protected_attributes 2017-01-12 17:46:18 +00:00
quiz_submission_zipper.rb fix Download All Files for Quiz 2016-09-15 20:57:57 +00:00
quiz_user_finder.rb show inactive students in speedgrader 2016-02-23 16:58:21 +00:00
quiz_user_messager.rb AddressBook facade 2016-08-15 15:03:56 +00:00
scoped_to_user.rb allow admins without manage rights to read unpublished quizzes 2016-06-10 17:33:36 +00:00
submission_grader.rb prevent result creation for 0 point and non-assignment quizzes 2017-01-26 15:10:34 +00:00
submission_manager.rb fix Lint/StringConversionInInterpolation issue 2015-04-27 20:53:25 +00:00