fix some bug

This commit is contained in:
chiu committed 2019-09-28 21:19:38 +08:00
1 parent f8c03d2342
commit 4433d4d40d
2 files changed
+16 -13

No files matched your search

@@ -78,6 +78,7 @@ class Admin::PatchfilesController < OrbitAdminController
redirect_to admin_patchfiles_showckeditor_path
end
def newfont
params["patchfilefield"]["new_add_font"] = params["patchfilefield"]["new_add_font"].gsub('\"','').gsub("\'",'').gsub(";",'')
@field.new_add_font = params["patchfilefield"]["new_add_font"] rescue (redirect_to admin_patchfiles_showckeditor_path and return)
params["patchfilefield"]["font_array"].each_with_index do |(font,istrue),index|
if istrue =="0"