Fix 500 error when generate labels on labels page. Fixes #1311

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-06-04 11:08:21 +03:00
parent 5921c74813
commit 4e249dadb5
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ class Projects::LabelsController < Projects::ApplicationController
redirect_to project_issues_path(@project)
elsif params[:redirect] == 'merge_requests'
redirect_to project_merge_requests_path(@project)
else
redirect_to project_labels_path(@project)
end
end