end
if resource_class == Collection
dst.manifest_text = Collection.select([:manifest_text]).where(uuid: src.uuid).with_count("none").first.manifest_text
+ # Fixes bug 19144: nullify some fields that are managed by keep-balance.
+ dst.storage_classes_confirmed = []
+ dst.storage_classes_confirmed_at = nil
end
when :move
dst = src
flash = {}
# set owner_uuid to current project, provided it is writable
- action_data = Oj.load(params['action_data'] || "{}")
+ action_data = Oj.safe_load(params['action_data'] || "{}")
if action_data['current_project_uuid'] and
current_project = Group.find?(action_data['current_project_uuid']) and
current_project.writable_by.andand.include?(current_user.uuid)