Tested twice on clean install. Used cck, view, and autoload. Attempted to make changes in the quiz form configuration and sql error was displayed.
user warning: Field 'aid' doesn't have a default value query: INSERT INTO quiz_user_settings (uid, nid, vid, 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, allow_resume, allow_jumping) VALUES (3, 0, 0, 75, '', '', 0, 1, 2, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0) in....
Did not find this error in search so I assume it could just be me.
Comments
Comment #1
Jim Kirkpatrick CreditAttribution: Jim Kirkpatrick commentedWe get this too:
'aid' field doesn't have default value
. It prevents me savingadmin/quiz/settings/quiz_form
.Related to:
Comment #2
Jim Kirkpatrick CreditAttribution: Jim Kirkpatrick commentedProbably a dupe of of #922316: Error on saving admin/quiz/settings/quiz_form except the 'aid' field is complaining, not the 'nid' field.
We went from 3.x to 4.0 branch, then from 4.0 to 4.3... Did we miss a schema update?
Comment #3
Jim Kirkpatrick CreditAttribution: Jim Kirkpatrick commentedFurther to my last, I believe the call that causes the issue is
drupal_write_record('quiz_user_settings', $node, $update);
on in quiz.module, line 3950.I updated the
quiz_admin_node_form_submit()
preparation function on line 324 of quiz.admin.inc and added a default value with this line of code:$form_state['values']['aid'] = '';
So the function should look like:
Works for me, I can now save that form.
Comment #4
Jim Kirkpatrick CreditAttribution: Jim Kirkpatrick commentedComment #5
falcon CreditAttribution: falcon commentedThanks