Commit ec65046ca381d1edd45ea9a50a63373461db563c

Authored by Karpikau Andrei
1 parent c21cb28a

check error save content

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