fix some bug and add update accessibility
This commit is contained in:
1 parent
c3e52b08df
commit
67ec45d3d0
26 files changed
+34632
-26
No files matched your search
@@ -195,7 +195,15 @@ class Admin::PatchfilesController < OrbitAdminController
|
||||
@file_to_show.save
|
||||
@file_to_show = Filefield.where("title"=>@app_title).first
|
||||
else
|
||||
@default_field = Filefield.new()
|
||||
@file_to_show = Filefield.where("title"=>@app_title).first
|
||||
@default_field.file_show.each do |check,istrue|
|
||||
if @file_to_show.file_show[check] == nil
|
||||
@file_to_show.file_show[check] = istrue
|
||||
@file_to_show.save
|
||||
@file_to_show = Filefield.where("title"=>@app_title).first
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user