Revision 848
Added by Jean-Philippe Lang over 17 years ago
trunk/app/controllers/issues_controller.rb | ||
---|---|---|
111 | 111 |
end |
112 | 112 |
end |
113 | 113 |
show |
114 |
render :action => 'show' |
|
115 | 114 |
end |
116 | 115 |
|
117 | 116 |
def change_status |
trunk/app/models/issue.rb | ||
---|---|---|
71 | 71 |
if start_date && soonest_start && start_date < soonest_start |
72 | 72 |
errors.add :start_date, :activerecord_error_invalid |
73 | 73 |
end |
74 |
|
|
75 |
# validate assignment |
|
76 |
if assigned_to && !assignable_users.include?(assigned_to) |
|
77 |
errors.add :assigned_to_id, :activerecord_error_invalid |
|
78 |
end |
|
79 | 74 |
end |
80 | 75 |
|
81 | 76 |
def before_create |
Also available in: Unified diff
Removed issue assignment validation to avoid validation failure when updating the issue and if the assignee is no longer a member of the project.