OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix: Files can be empty
Wieland Lindenthale5dd5dbc5b59
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erbindex 967b8827daf..6556dfcc464 100644--- a/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb@@ -62,7 +62,7 @@ See doc/COPYRIGHT.rdoc for more details.var fileNameField = jQuery('input[type=file]')var fileName = '';- if (fileNameField.length > 0) {+ if (fileNameField.length > 0 && fileNameField[0].files && fileNameField[0].files[0]) {fileName = fileNameField[0].files[0].name;}