Error on saving admin/quiz/settings/quiz_form

user warning: Field 'nid' doesn't have a default value query: INSERT INTO quiz_user_settings (uid, pass_rate, summary_default, randomization, backwards_navigation, keep_results, repeat_until_correct, feedback_time, display_feedback, takes, show_attempt_stats, time_limit, quiz_always, has_userpoints, allow_skipping) VALUES (13, 75, '', 0, 1, 2, 0, 0, 1, 0, 1, 0, 0, 0, 1) in K:\wamp\www\talpigno\includes\common.inc on line 3528

Drupal: 6.19
PHP version: 5.2.9.2
MySQL: 5.1.36

Comments

rmjiv’s picture

Confirmed. I'd roll a patch but I don't know which way to go. I think the best answer is to make the column nullable, but maybe I'm missing something.

Hitmrrr’s picture

up! how to fix it?

user warning: Field 'nid' doesn't have a default value query: INSERT INTO quiz_user_settings (uid, pass_rate, summary_pass, summary_default, randomization, backwards_navigation, keep_results, repeat_until_correct, feedback_time, display_feedback, takes, show_attempt_stats, time_limit, quiz_always, has_userpoints, allow_skipping) VALUES (115, 75, '', '', 0, 1, 2, 0, 2, 0, 0, 1, 0, 1, 0, 1) in C:\www\localhost\htdocs\includes\common.inc on line 3567.

falcon’s picture

Status: Active » Needs review

I've commited a fix. I don't get this error myself, so if some of you could update from cvs and see if my fix solves your problem it would be great!

(I just added a quick fix setting the nid and vid to 0 prior to saving the preferences)

falcon’s picture

Status: Needs review » Closed (fixed)

No replies here so I guess this issue is fixed...

jim kirkpatrick’s picture