Remove sample type and group from smart annotation [SCI-897]

This commit is contained in:
Oleksii Kriuchykhin 2017-01-18 14:46:53 +01:00
parent 8a220c2351
commit e45749d3b2

View file

@ -99,13 +99,7 @@ class SmartAnnotation
)} #{I18n.t('by')} #{truncate( )} #{I18n.t('by')} #{truncate(
sanitize(sample_res.user.full_name, sanitize(sample_res.user.full_name,
length: Constants::NAME_TRUNCATION_LENGTH) length: Constants::NAME_TRUNCATION_LENGTH)
)} #{if sample_res.sample_type )}"
', ' + truncate(sanitize(sample_res.sample_type.name),
length: Constants::NAME_TRUNCATION_LENGTH)
end} #{if sample_res.sample_group
', ' + truncate(sanitize(sample_res.sample_group.name),
length: Constants::NAME_TRUNCATION_LENGTH)
end}"
sam['type'] = 'sam' sam['type'] = 'sam'
samples_list << sam samples_list << sam
end end