summaryrefslogtreecommitdiffstats
path: root/app/models/issue_import.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-02-20 18:12:42 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-02-20 18:12:42 +0000
commit3e9f0023a197c39109292c52507b1749cb7d4e6c (patch)
tree39c015a39549c7ee46fdcc3af21b8eb5f52fa261 /app/models/issue_import.rb
parentd8f8b7d4963119ce06235160ac14a280d27f5508 (diff)
downloadredmine-3e9f0023a197c39109292c52507b1749cb7d4e6c.tar.gz
redmine-3e9f0023a197c39109292c52507b1749cb7d4e6c.zip
Fix import with issue relations and invalid issues hangs without any error message in UI (#35656).
git-svn-id: http://svn.redmine.org/redmine/trunk@21422 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_import.rb')
-rw-r--r--app/models/issue_import.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/issue_import.rb b/app/models/issue_import.rb
index eb8a599ff..d1fc98521 100644
--- a/app/models/issue_import.rb
+++ b/app/models/issue_import.rb
@@ -286,7 +286,11 @@ class IssueImport < Import
relation.delay = decl[:delay] if decl[:delay]
- relation.save!
+ begin
+ relation.save!
+ rescue
+ nil
+ end
end
end
end