Page front end stay in the same page when a link is clicked (title or pagination)

This commit is contained in:
chris committed 2013-03-18 21:54:06 +08:00
1 parent f29ad27b56
commit 157935e7eb
1 file changed
+3 -1
+3 -1
View File
@@ -64,7 +64,9 @@ class PagesController < ApplicationController
protected
def get_item
if params[:same_page_id]
if params[:page_id]
@item = Item.find(params[:page_id])
elsif params[:same_page_id]
@item = Item.find(params[:same_page_id])
else
module_app = ModuleApp.first(:conditions => {:key => params[:app_name]})