Skip to content

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

Fix: Wrong existence check for a jQuery object.

Wieland Lindenthal4f64591d8992
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.erb
index 3d04f19dca3..c853c559027 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
@@ -64,7 +64,7 @@ See doc/COPYRIGHT.rdoc for more details.
<%# When creating a new model, there is no titleField. %>
var titleFieldValue = '';
- if (titleField) {
+ if (titleField.length > 0) {
titleFieldValue = jQuery("#bim_ifc_models_ifc_model_title").val();
};