Commit ec65046ca381d1edd45ea9a50a63373461db563c

Authored by Karpikau Andrei
1 parent c21cb28a

check error save content

@@ -162,7 +162,7 @@ module Kanjai @@ -162,7 +162,7 @@ module Kanjai
162 162
163 @obj.update(permitted_params[:page_content]) 163 @obj.update(permitted_params[:page_content])
164 164
165 - if params[:frontend_part] 165 + if params[:frontend_part].to_i == 1
166 render :json => {:status => 'ok', :structure_id => @structure_id, frontentd: 1, :html => @obj.get_content_frontend} 166 render :json => {:status => 'ok', :structure_id => @structure_id, frontentd: 1, :html => @obj.get_content_frontend}
167 else 167 else
168 render :json => {:status => 'ok', :structure_id => @structure_id, :html => @obj.get_content} 168 render :json => {:status => 'ok', :structure_id => @structure_id, :html => @obj.get_content}
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.167" 2 + VERSION = "0.0.168"
3 end 3 end