Merge branch 'master' into 'master'

reback the wrong code to avoid the history of pagecontext being deleted



See merge request !3
This commit is contained in:
wmcheng 2019-12-16 00:13:57 +08:00
commit 74d1986002
1 changed files with 0 additions and 1 deletions

View File

@ -33,7 +33,6 @@ class Admin::PageContentsController < OrbitAdminController
end
def create
PageContext.where("page_id" => params["page_context"]["page_id"]).destroy_all
@page_content = PageContext.new(update_params)
@page_content.update_user_id = current_user.id
@page_content.save