Skip to content

Commit

Permalink
Reload work package before comparing its time values
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Zanders committed May 28, 2024
1 parent 41a1a95 commit 7ec43b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/bim/spec/requests/api/bcf/v2_1/topics_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def expected_body_for_bcf_issue(
description: nil,
base: nil
)
work_package = base || issue.work_package
work_package = (base || issue.work_package).reload

{
guid: issue&.uuid,
Expand All @@ -603,9 +603,9 @@ def expected_body_for_bcf_issue(
due_date: due_date || base&.due_date,
stage: nil,
creation_author: creation_author_mail,
creation_date: work_package&.created_at&.iso8601(3),
creation_date: work_package&.created_at,
modified_author: modified_author_mail,
modified_date: work_package&.updated_at&.iso8601(3),
modified_date: work_package&.updated_at,
description: description || base&.description,
authorization: {
topic_status: [(base && base.status.name) || default_status.name],
Expand Down

0 comments on commit 7ec43b5

Please sign in to comment.