fix for multi select cates and tags

This commit is contained in:
Fu Matthew committed 2013-03-04 19:29:45 +08:00
1 parent 15b9839b76
commit 285119a5f3
2 files changed
+3 -3

No files matched your search

@@ -73,7 +73,7 @@ class Admin::PagePartsController < ApplicationController
params[:page_part][:category] = []
end
params[:page_part][:widget_field].each{|t| t[2] = (t[2]=="true" ? true : false )}
params[:page_part][:widget_field].each{|t| t[2] = (t[2]=="true" ? true : false )} if !params[:page_part][:widget_field].blank?
if @part.update_attributes(params[:page_part])
set_children_sub_menu(@part) if @part.public_r_tag && @part.public_r_tag.eql?('sub_menu')