Fix bugs and changes for nccu

This commit is contained in:
Christophe Vilayphiou authored and Christophe Vilayphiou committed 2012-02-27 18:50:56 +08:00
1 parent f4d663c67d
commit f13ebc6c46
20 files changed
+98 -61

No files matched your search

+3 -3
View File
@@ -60,10 +60,10 @@ class Admin::PagesController < ApplicationController
def update
@item = Page.find(params[:id])
if @item.module_app && @item.module_app.key == 'page_content' && @item.page_contexts.blank?
if @item.module_app && @item.module_app.key == 'page_content' && @item.page_contexts.blank?
@item.page_contexts.build(:create_user_id => current_user.id, :update_user_id => current_user.id )
end
end
if @item.update_attributes(params[:page])
flash[:notice] = t('admin.update_success_page')