Page front end stay in the same page when a link is clicked (title or pagination)
This commit is contained in:
parent
f29ad27b56
commit
157935e7eb
|
@ -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]})
|
||||
|
|
Reference in New Issue