diff --git a/app/assets/javascripts/sitewide/form_validators.js.erb b/app/assets/javascripts/sitewide/form_validators.js.erb index aca5ef0f3..42b724412 100644 --- a/app/assets/javascripts/sitewide/form_validators.js.erb +++ b/app/assets/javascripts/sitewide/form_validators.js.erb @@ -163,7 +163,7 @@ function filesSizeValidator(ev, fileInputs, fileTypeEnum) { case FileTypeEnum.FILE: return "<%= I18n.t('general.file.total_size', size: Constants::FILE_MAX_SIZE_MB) %>".strToErrorFormat(); case FileTypeEnum.AVATAR: - return "<%= I18n.t('general.file.total_size', size: Constants::AVATAR_MAX_SIZE_MB) %>".strToErrorFormat(); + return "<%= I18n.t('users.registrations.edit.avatar_total_size', size: Constants::AVATAR_MAX_SIZE_MB) %>".strToErrorFormat(); } } } diff --git a/app/models/team.rb b/app/models/team.rb index 3331ef8c3..62423b35d 100644 --- a/app/models/team.rb +++ b/app/models/team.rb @@ -94,6 +94,7 @@ class Team < ActiveRecord::Base end row.each.with_index do |value, index| + next unless value.present? if index == stype_index stype = SampleType.where(team: self) .where('name ILIKE ?', value.strip) diff --git a/config/locales/en.yml b/config/locales/en.yml index 01790783f..0f26eed07 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1251,6 +1251,7 @@ en: avatar_title: "Change avatar" avatar_edit_label: "Upload new avatar file" avatar_submit: "Upload" + avatar_total_size: "Your avatar file cannot be larger than 0.2 MB. (Please try again with a smaller file.)" name_label: "Full name" name_title: "Change name" initials_label: "Initials" @@ -1792,8 +1793,8 @@ en: zip_export: modal_label: 'Export repository' notification_title: 'Your package is ready to be exported!' - expired_title: 'The required file was expired!' - expired_description: 'The downloadable file expires in 7 days after its creation.' + expired_title: 'Looks like your link has expired.' + expired_description: 'Please export the data again in order to receive a new link.' modal_label: 'Export request received' modal_html: "

Your export request is being processed.

When completed we will send an email to %{email} inbox with a link to your exported samples. Note that the link will expire in 7 days.

" repository_html: '

You are about to export selected items in repository %{repository}


Repository will be exported in a .csv file format. You will receive email with a link where you can download it.'