end
def show
- @object = model_class.find(params[:uuid])
+ @object = model_class.andand.find(params[:uuid])
if @object.is_a? Link and
@object.link_class == 'name' and
ArvadosBase::resource_class_for_uuid(@object.head_uuid) == Collection
redirect_to collection_path(id: @object.uuid)
- else
+ elsif @object
redirect_to @object
+ else
+ raise ActiveRecord::RecordNotFound
end
end
def move_or_copy action
uuids_to_add = params["selection"]
+ uuids_to_add = [ uuids_to_add ] unless uuids_to_add.is_a? Array
uuids_to_add.
collect { |x| ArvadosBase::resource_class_for_uuid(x) }.
uniq.
redirect_to controller: 'collections', action: :show, id: newc.uuid
end
+ def report_issue_popup
+ @popup_params = params
+ respond_to do |format|
+ format.js
+ format.html
+ end
+ end
+
+ def report_issue
+ logger.warn "report_issue: #{params.inspect}"
+
+ respond_to do |format|
+ IssueReporter.send_report(current_user, params).deliver
+ format.js
+ end
+ end
+
end