Commit 4e249dadb5bbcda8e36e6282a36ea2aa1b7900fd
1 parent
5921c748
Exists in
spb-stable
and in
2 other branches
Fix 500 error when generate labels on labels page. Fixes #1311
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/controllers/projects/labels_controller.rb
... | ... | @@ -16,6 +16,8 @@ class Projects::LabelsController < Projects::ApplicationController |
16 | 16 | redirect_to project_issues_path(@project) |
17 | 17 | elsif params[:redirect] == 'merge_requests' |
18 | 18 | redirect_to project_merge_requests_path(@project) |
19 | + else | |
20 | + redirect_to project_labels_path(@project) | |
19 | 21 | end |
20 | 22 | end |
21 | 23 | ... | ... |