Showing
2 changed files
with
2 additions
and
2 deletions
| ... | ... | @@ -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} | ... | ... |