Fix bug in widget selection
This commit is contained in:
parent
caac9191ce
commit
5b0b8e6c79
|
@ -55,7 +55,7 @@ class Admin::PagePartsController < ApplicationController
|
|||
|
||||
def update
|
||||
@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] )
|
||||
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]
|
||||
|
||||
params[:page_part][:widget_field_type] = nil
|
||||
params[:page_part][:widget_field_is_link] = nil
|
||||
|
|
Loading…
Reference in New Issue