Forgot to change title in key in pages_controller

This commit is contained in:
Christophe Vilayphiou committed 2012-02-06 22:09:33 +08:00
1 parent 8f885e8bb7
commit 872a00b6a2
1 file changed
+1 -1
+1 -1
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