From 56c31d6e2f11d1dc0d2de6c140d1c06a64a30d3c Mon Sep 17 00:00:00 2001 From: linhk <304431313@.com> Date: Tue, 16 Sep 2014 11:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=89=88=E6=9C=AC=E5=BA=93?= =?UTF-8?q?=E7=BD=91=E9=A1=B5=E6=A0=87=E9=A2=98Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 1 - app/helpers/application_helper.rb | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index c1593e320..3f6e3db58 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -555,7 +555,6 @@ class ProjectsController < ApplicationController # Show @project def show - @project_type = params[:project_type] # try to redirect to the requested menu item diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ef18793ab..1112cebc6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -635,6 +635,11 @@ module ApplicationHelper end def html_title(*args) + #點擊項目版本庫 多觸發一次 字符串為"/" + #暫時解決方法 直接判斷 + if(args == ["/"]) + args = [] + end first_page = FirstPage.where("page_type = 'project'").first if args.empty? title = @html_title || []