SU2-33 | Фикс критических и серьёзных ошибок, удаление/перезагрузка организации, пагинация, favicon
This commit is contained in:
@@ -25,7 +25,7 @@ module OrganisationsHelper
|
||||
end
|
||||
|
||||
def parse_number(value)
|
||||
return 0 if value.empty? || ['-', '(-)', 'X'].include?(value)
|
||||
return 0 if value.nil? || value.empty? || ['-', '(-)', 'X'].include?(value)
|
||||
negative = value.start_with?('(') && value.end_with?(')')
|
||||
value = value.tr('()', '') if negative
|
||||
value = value.delete(' ')
|
||||
|
||||
Reference in New Issue
Block a user