Page edit wasn't showing when module_app was nil

This commit is contained in:
Christophe Vilayphiou 2012-01-31 16:35:40 +08:00
parent 762c2f5e8a
commit 4906894fb5
1 changed files with 1 additions and 1 deletions

View File

@ -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