Patch #8414

time_entry is saved even with errors

Added by Francisco José Martínez about 2 years ago. Updated almost 2 years ago.

Status:NewStart date:2011-05-20
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-

Description

I don't know if this is already fixed, I'm looking for and no result has been found.

We have a custom field at beginning isn't require, passed few time, we changed this behaviour. some issues hadn't got defined a value for this custom field.
If we try to update the issue, we puts some hours in the field spent_time, but don't put any value in the custom field required then submit.

We have a error, but the time_entry don't have rollback

I'm using redmine 1.0.2 (stable)
I've patched the Issue::save_issue_with_child_records adding a "raise" if "params"
isn't valid

issue.rb.patch Magnifier (348 Bytes) Francisco José Martínez, 2011-05-20 14:09

issue.rb.patch Magnifier - More lines to compare (757 Bytes) Francisco José Martínez, 2011-05-20 14:13

History

#2 Updated by Francisco José Martínez almost 2 years ago

  • % Done changed from 100 to 0

Also available in: Atom PDF