Defect #11979
No validation errors when entering an invalid "Parent task"
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Issues | |||
Target version: | 2.2.0 | |||
Resolution: | Fixed | Affected version: | 2.1.0 |
Description
Validation errors should be displayed if the "Parent task" value is non-numeric value.
Related issues
Associated revisions
Fixed: No validation errors when entering an invalid "Parent task" (#11979).
add test of parent issue id beginning sharp to unit issue test (#11979)
set language en at test_create_with_invalid_parent_issue_id of unit issue test (#11979)
Fixed that entering #nnn as parent task should validate (#11979).
History
#1
Updated by Jean-Philippe Lang over 8 years ago
- 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
#2
Updated by Jean-Philippe Lang over 8 years ago
- Subject changed from No validation errors when entering a non numeric "Parent task" to No validation errors when entering an invalid "Parent task"
#3
Updated by Jean-Philippe Lang over 8 years ago
- Status changed from Confirmed to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.2.0
- Resolution set to Fixed
Fixed in r10615.
#4
Updated by Toshi MARUYAMA over 8 years ago
- 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
#5
Updated by Jean-Philippe Lang over 8 years ago
- Status changed from Reopened to Closed
- Resolution set to Fixed
Fixed in r10658.