@ -217,8 +217,10 @@ class AttachmentsController < ApplicationController
end
def conversion_container_id id, type
if type == 'Shixun'
if id.is_a?(String) && type == 'Shixun'
Shixun.find_by_identifier(id).id
else
id