fix default widget link
This commit is contained in:
1 parent
d7699e1a46
commit
8a8bfcb8fb
5 files changed
+11
-12
No files matched your search
@@ -54,7 +54,7 @@ class Admin::PagePartsController < ApplicationController
|
||||
end
|
||||
|
||||
def update
|
||||
binding.pry
|
||||
|
||||
@part = PagePart.find(params[:id])
|
||||
params[:page_part][:widget_field] = params[:page_part][:widget_field].zip( params[:page_part][:widget_field_type],params[:page_part][:widget_field_is_link] ) if params[:page_part][:widget_field]
|
||||
|
||||
@@ -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 )}
|
||||
|
||||
if @part.update_attributes(params[:page_part])
|
||||
set_children_sub_menu(@part) if @part.public_r_tag && @part.public_r_tag.eql?('sub_menu')
|
||||
|
||||
Reference in new issue
Block a user