Fix projects controller patch
This commit is contained in:
parent
4f6ce2c630
commit
dfcd531916
@ -8,7 +8,7 @@ module RedmineLandingPage
|
||||
alias_method :show_without_landing_page, :show unless method_defined? :show_without_landing_page
|
||||
|
||||
def show
|
||||
if !@project.landing_page.empty?
|
||||
if @project.landing_page && !@project.landing_page.empty?
|
||||
redirect_to @project.landing_page, :status => 302
|
||||
else
|
||||
show_without_landing_page
|
||||
|
Loading…
Reference in New Issue
Block a user