From 4906894fb583bade1053161936cb1a05a063bfbf Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Tue, 31 Jan 2012 16:35:40 +0800 Subject: [PATCH] Page edit wasn't showing when module_app was nil --- app/controllers/admin/pages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/pages_controller.rb b/app/controllers/admin/pages_controller.rb index c547d5f2..a6f0373e 100644 --- a/app/controllers/admin/pages_controller.rb +++ b/app/controllers/admin/pages_controller.rb @@ -32,7 +32,7 @@ class Admin::PagesController < ApplicationController @i18n_variable = @item.i18n_variable @designs = Design.all.entries @design = @item.design - @app_frontend_urls = @item.module_app.app_pages + @app_frontend_urls = @item.module_app.app_pages if @item.module_app end def create