Merged r4414 from trunk.
Fixed: submitting a non numerical parent task input creates a 500 error (#6932).
Fixed: Migration from boolean to varchar fails on PostgreSQL 8.1 (#6943).
Fixed: links to edit/delete a news broken by r4214 (#6944).
Initialize TimeEntry attributes with params when editing an issue (#5441).
Prevents NoMethodError when requesting /time_entries/edit without an id (#6904).
Fixed: Log Time link broken in issue context menu (#6904).
Fixes a NoMethodError in tests with ruby 1.8.6.
Adds leading slash to all assert_redirected_to arguments (#6887).
Use Object#tap instead of #returning (#6887).