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

This commit is contained in:
chris 2013-03-18 21:54:06 +08:00
parent f29ad27b56
commit 157935e7eb
1 changed files with 3 additions and 1 deletions

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]})