summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-02-20 18:51:46 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-02-20 18:51:46 +0000
commit5754ee903bf89a59ce36a9b015099839a3a638eb (patch)
treeea726a54d4907aaf6cbb1da57baa8d20d2beee2b /app
parent31eb388f261aa1fb2c5ab1f1010a4de56c3dea65 (diff)
downloadredmine-5754ee903bf89a59ce36a9b015099839a3a638eb.tar.gz
redmine-5754ee903bf89a59ce36a9b015099839a3a638eb.zip
Merged r21422 to 4.2-stable (#35656).
git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21424 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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 9f6edf903..ccfd663e0 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