Forgot to change title in key in pages_controller

This commit is contained in:
Christophe Vilayphiou 2012-02-06 22:09:33 +08:00
parent 8f885e8bb7
commit 872a00b6a2
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class PagesController < ApplicationController
protected
def get_item
module_app = ModuleApp.first(:conditions => {:title => params[:app_name]})
module_app = ModuleApp.first(:conditions => {:key => params[:app_name]})
@item = Item.first(:conditions => {:module_app_id => module_app.id, :app_frontend_url => params[:app_action]})
end