Feature #33418 » accept_issue_to_id_as_array.patch
app/controllers/issue_relations_controller.rb | ||
---|---|---|
107 | 107 |
end |
108 | 108 | |
109 | 109 |
def relation_issues_to_id |
110 |
params[:relation].require(:issue_to_id).split(',').reject(&:blank?) |
|
110 |
issue_to_id = params[:relation].require(:issue_to_id) |
|
111 |
unless issue_to_id.is_a?(Array) |
|
112 |
issue_to_id = issue_to_id.split(',').reject(&:blank?) |
|
113 |
end |
|
114 |
issue_to_id |
|
111 | 115 |
rescue ActionController::ParameterMissing => e |
112 | 116 |
# We return a empty array just to loop once and return a validation error |
113 | 117 |
# ToDo: Find a better method to return an error if the param is missing. |
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »