-
Bug
-
Resolution: Fixed
-
Minor
-
2.0.6, 2.1.3, 2.2
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
Try to make one activity only available when the grade on another activity is between 'frog' and 'toad'. You will get an error like
Error writing to database
|
|
More information about this error
|
Debug info: ERROR: invalid input syntax for type numeric: "frog"
|
INSERT INTO mdl_course_modules_availability (coursemoduleid,gradeitemid,grademin,grademax) VALUES
|
[array (
|
'coursemoduleid' => '20828',
|
'gradeitemid' => '27',
|
'grademin' => 'frog',
|
'grademax' => 'toad',
|
)]
|
Stack trace:
|
|
line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
|
line 232 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
|
line 792 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
|
line 844 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
|
line 249 of /lib/conditionlib.php: call to pgsql_native_moodle_database->insert_record()
|
line 653 of /lib/conditionlib.php: call to condition_info->add_grade_condition()
|
line 319 of /course/modedit.php: call to condition_info::update_cm_from_form()
|