Defect #11979
closed
No validation errors when entering an invalid "Parent task"
Added by Go MAEDA about 12 years ago.
Updated about 12 years ago.
Description
Validation errors should be displayed if the "Parent task" value is non-numeric value.
- Subject changed from No validation errors are displayed when update an issue with wrong "Parent task" value to No validation errors when entering a non numeric "Parent task"
- Status changed from New to Confirmed
- Subject changed from No validation errors when entering a non numeric "Parent task" to No validation errors when entering an invalid "Parent task"
- Status changed from Confirmed to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.2.0
- Resolution set to Fixed
- Status changed from Closed to Reopened
- Resolution deleted (
Fixed)
Sharp issue id number (e.g. #11979) validation does not work.
This functional test fails.
def test_post_create_subissue_with_sharp_parent_id_validate
@request.session[:user_id] = 2
assert_difference 'Issue.count' do
post :create, :project_id => 1,
:issue => {:tracker_id => 1,
:subject => 'This is a child issue',
:parent_issue_id => '#1'}
assert_response 302
end
end
- Status changed from Reopened to Closed
- Resolution set to Fixed
Also available in: Atom
PDF