Skip to content

Commit

Permalink
allow force history tab
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Dec 14, 2024
1 parent 245f778 commit d7f7365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/additionals_journals_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
module AdditionalsJournalsHelper
MultipleValuesDetail = Struct.new :property, :prop_key, :custom_field, :old_value, :value

def entity_history_tabs(entity, journals, template_dir: nil)
def entity_history_tabs(entity, journals, template_dir: nil, force_history: false)
tabs = []
has_notes = false

template_dir ||= entity.class.name.underscore.pluralize

if journals.present?
if force_history || journals.present?
tabs << { name: 'history',
partial: "#{template_dir}/tabs/history",
onclick: 'showIssueHistory("history", this.href)',
Expand Down

0 comments on commit d7f7365

Please sign in to comment.