Fix link not showing for default front end
This commit is contained in:
parent
f3c809fd58
commit
ff30b3d05e
|
@ -93,8 +93,10 @@ helper Admin::PagePartsHelper
|
||||||
@item.page_contexts.build(:create_user_id => current_user.id, :update_user_id => current_user.id )
|
@item.page_contexts.build(:create_user_id => current_user.id, :update_user_id => current_user.id )
|
||||||
end
|
end
|
||||||
|
|
||||||
params[:page][:frontend_field] = params[:page][:frontend_field].zip( params[:page][:frontend_field_type] ) if params[:page][:frontend_field]
|
params[:page][:frontend_field] = params[:page][:frontend_field].zip( params[:page][:frontend_field_type], params[:page][:frontend_field_is_link] ) if params[:page][:frontend_field]
|
||||||
|
|
||||||
params[:page][:frontend_field_type] = nil
|
params[:page][:frontend_field_type] = nil
|
||||||
|
params[:page][:frontend_field_is_link] = nil
|
||||||
|
|
||||||
if params[:page][:tag] && params[:page][:tag].include?("nil")
|
if params[:page][:tag] && params[:page][:tag].include?("nil")
|
||||||
params[:page][:tag] = []
|
params[:page][:tag] = []
|
||||||
|
@ -104,6 +106,9 @@ helper Admin::PagePartsHelper
|
||||||
params[:page][:category] = []
|
params[:page][:category] = []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
params[:page][:frontend_field].each{|t| t[2] = (t[2]=="true" ? true : false )} if !params[:page][:frontend_field].blank?
|
||||||
|
|
||||||
|
|
||||||
if @item.update_attributes(params[:page])
|
if @item.update_attributes(params[:page])
|
||||||
flash[:notice] = t('update.success.page')
|
flash[:notice] = t('update.success.page')
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Reference in New Issue