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 unwanted spaces in backlogs edit fields

Christophe Bliard915876140d39
diff --git a/modules/backlogs/app/views/rb_impediments/_impediment.html.erb b/modules/backlogs/app/views/rb_impediments/_impediment.html.erb
index 9ba0dfc0477..3376cddef57 100644
--- a/modules/backlogs/app/views/rb_impediments/_impediment.html.erb
+++ b/modules/backlogs/app/views/rb_impediments/_impediment.html.erb
@@ -39,15 +39,11 @@ See COPYRIGHT and LICENSE files for more details.
fieldtype="textarea"
fieldname="subject"
fieldlabel="<%= WorkPackage.human_attribute_name(:subject) %>"
- field_id="<%= impediment.id %>">
- <%= impediment.subject %>
- </div>
+ field_id="<%= impediment.id %>"><%= impediment.subject %></div>
<div class="blocks editable"
fieldname="blocks_ids"
fieldlabel="<%= t(:label_blocks_ids) %>"
- field_id="<%= impediment.id %>">
- <%= blocks_ids(impediment.blocks_ids) %>
- </div>
+ field_id="<%= impediment.id %>"><%= blocks_ids(impediment.blocks_ids) %></div>
<div class="assigned_to_id editable"
fieldtype="select"
fieldname="assigned_to_id"
@@ -59,9 +55,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="remaining_hours editable<%= ' empty' if remaining_hours(impediment).blank? %>"
fieldname="remaining_hours"
fieldlabel="<%= WorkPackage.human_attribute_name(:remaining_hours) %>"
- field_id="<%= impediment.id %>">
- <%= remaining_hours(impediment) %>
- </div>
+ field_id="<%= impediment.id %>"><%= remaining_hours(impediment) %></div>
<div class="indicator"> </div>
<div class="meta">
<div class="story_id"><%= impediment.parent_id %></div>
diff --git a/modules/backlogs/app/views/rb_sprints/_sprint.html.erb b/modules/backlogs/app/views/rb_sprints/_sprint.html.erb
index e2d4733ffb1..881c06631d3 100644
--- a/modules/backlogs/app/views/rb_sprints/_sprint.html.erb
+++ b/modules/backlogs/app/views/rb_sprints/_sprint.html.erb
@@ -39,21 +39,15 @@ See COPYRIGHT and LICENSE files for more details.
<div class="effective_date date <%= editable %>"
fieldname="effective_date"
fieldlabel="<%= Version.human_attribute_name(:effective_date) %>"
- field_id="<%= sprint.id %>">
- <%= sprint.effective_date %>
- </div>
+ field_id="<%= sprint.id %>"><%= sprint.effective_date %></div>
<div class="start_date <%= editable %> date"
fieldname="start_date"
fieldlabel="<%= Version.human_attribute_name(:start_date) %>"
- field_id="<%= sprint.id %>">
- <%= sprint.start_date %>
- </div>
+ field_id="<%= sprint.id %>"><%= sprint.start_date %></div>
<div class="name <%= editable %>"
fieldname="name"
fieldlabel="<%= Version.human_attribute_name(:name) %>"
- field_id="<%= sprint.id %>">
- <%= sprint.name %>
- </div>
+ field_id="<%= sprint.id %>"><%= sprint.name %></div>
</div>
<% if User.current.allowed_in_project?(:update_sprints, @project) %>
diff --git a/modules/backlogs/app/views/rb_stories/_story.html.erb b/modules/backlogs/app/views/rb_stories/_story.html.erb
index f1045acc0b0..9f799f5fc91 100644
--- a/modules/backlogs/app/views/rb_stories/_story.html.erb
+++ b/modules/backlogs/app/views/rb_stories/_story.html.erb
@@ -36,9 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
fieldname="story_points"
fieldlabel="<%= WorkPackage.human_attribute_name(:story_points) %>"
fieldorder="4"
- field_id="<%= story.id %>">
- <%= story_points_or_empty(story) %>
- </div>
+ field_id="<%= story.id %>"><%= story_points_or_empty(story) %></div>
<div class="status_id editable"
fieldtype="select"
fieldname="status_id"
@@ -61,10 +59,8 @@ See COPYRIGHT and LICENSE files for more details.
fieldname="subject"
fieldlabel="<%= WorkPackage.human_attribute_name(:subject) %>"
fieldorder="2"
- title="<%= h story.subject %>"
- field_id="<%= story.id %>">
- <%=h story.subject %>
- </div>
+ title="<%= story.subject %>"
+ field_id="<%= story.id %>"><%= story.subject %></div>
<div class="version_id"><%= story.version_id %></div>
<div class="higher_item_id"><%= !defined?(higher_item) || higher_item.nil? ? '' : higher_item.id %></div>
<div class="meta">
diff --git a/modules/backlogs/app/views/rb_tasks/_task.html.erb b/modules/backlogs/app/views/rb_tasks/_task.html.erb
index 265f0a79ae1..bf0d12fb935 100644
--- a/modules/backlogs/app/views/rb_tasks/_task.html.erb
+++ b/modules/backlogs/app/views/rb_tasks/_task.html.erb
@@ -37,9 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
fieldtype="textarea"
fieldname="subject"
fieldlabel="<%= WorkPackage.human_attribute_name(:subject) %>"
- field_id="<%= task.id %>">
- <%= task.subject %>
- </div>
+ field_id="<%= task.id %>"><%= task.subject %></div>
<div class="assigned_to_id editable"
fieldtype="select"
fieldname="assigned_to_id"
@@ -50,9 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="remaining_hours editable<%= ' empty' if remaining_hours(task).blank? %>"
fieldname="remaining_hours"
- fieldlabel="<%= WorkPackage.human_attribute_name(:remaining_hours) %>">
- <%= remaining_hours(task) %>
- </div>
+ fieldlabel="<%= WorkPackage.human_attribute_name(:remaining_hours) %>"><%= remaining_hours(task) %></div>
<div class="indicator"> </div>
<div class="meta">
<div class="story_id"><%= task.parent_id %></div>