QN: Gets 500 error on submit

Description

PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column 'points' at row 1: UPDATE {h5p_points} SET finished=:db_update_placeholder_0, points=:db_update_placeholder_1, max_points=:db_update_placeholder_2 WHERE (content_id = :db_condition_placeholder_0) AND (uid = :db_condition_placeholder_1) ; Array ( [:db_update_placeholder_0] => 1477642032 [:db_update_placeholder_1] => [:db_update_placeholder_2] => [:db_condition_placeholder_0] => 51 [:db_condition_placeholder_1] => 1 ) in h5p_set_finished() (line 733 of /var/www/html/sites/all/modules/h5p/h5p.module).

Environment

None

Acceptance Criteria

  • Fix so error does not get thrown

Status

Assignee

Frode Petterson

Reporter

Thomas Marstrander

Labels

None

Funding

None

Code reviewer

Pål Jørgensen

Released

None

Time tracking

3h

Fix versions

Sprint

None

Priority

Medium
Configure