このコミットが含まれているのは:
@@ -107,11 +107,14 @@ class PostImportsController < ApplicationController
|
||||
raise ArgumentError, 'タグ由来が大きすぎます.'
|
||||
end
|
||||
|
||||
source_row = Integer(normalised['source_row'], exception: false)
|
||||
raise ArgumentError, '元行番号が不正です.' if source_row.nil? || source_row <= 0
|
||||
|
||||
normalised['source_row'] = source_row
|
||||
normalised.symbolize_keys
|
||||
end
|
||||
source_rows = normalised_rows.map { _1[:source_row] }
|
||||
if source_rows.any? { |value| Integer(value, exception: false).to_i <= 0 } ||
|
||||
source_rows.uniq.length != source_rows.length
|
||||
if source_rows.uniq.length != source_rows.length
|
||||
raise ArgumentError, '元行番号が不正です.'
|
||||
end
|
||||
|
||||
|
||||
新しい課題から参照
ユーザをブロックする