Pre-validation step of clearing disabled fields clears the done_ratio field, but this field is declared NOT NULL in the database or is required to be present during some other validation step. Removing this line "fixes" the problem.
Proper fix is to allow done_ratio to be NULL. Not familiar enough with code to be sure how to do this.
before_validation:clear_disabled_fields# < THIS LINE ADDED IN COMMITbefore_create:default_assignbefore_save:close_duplicates,:update_done_ratio_from_issue_status,:force_updated_on_change,:update_closed_on,:set_assigned_to_wasafter_save{|issue|issue.send:after_project_changeif!issue.id_changed?&&issue.project_id_changed?}after_save:reschedule_following_issues,:update_nested_set_attributes,:update_parent_attributes,:create_journal