Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def build_table_subject_cell(entry)

href = url_helpers.work_package_url(entry.entity)
{
content: "#{make_link_href(href, "##{entry.entity.id}")} #{entry.entity.subject || ''}",
content: "#{make_link_href(href, entry.entity.formatted_id)} #{entry.entity.subject || ''}",
inline_format: true
}
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,16 @@ def expected_document(with_times_column)
expect(subject).to eq expected_document(false)
end
end

context "with semantic work package identifiers",
with_settings: { work_packages_identifier: "semantic", allow_tracking_start_and_end_times: false } do
before do
user_time_entry.entity.update_columns(identifier: "PROD-42", sequence_number: 42)
end

it "renders the semantic identifier in the work package column" do
expect(subject).to include("PROD-42")
expect(subject).not_to include("##{user_time_entry.entity.id}")
end
end
end
Loading