From c4f0dda48023ba3be6cab58d8219b0ac798d0f8e Mon Sep 17 00:00:00 2001 From: David Date: Wed, 15 May 2024 04:08:33 -0400 Subject: [PATCH] feat: display "app_version" in product edit history (#10295) Extracting "app version" from changes.sto - Passing "app_version" to edit_history web template - optionally writing "app_version" in template when present --- lib/ProductOpener/Display.pm | 2 ++ templates/web/pages/product/includes/edit_history.tt.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ProductOpener/Display.pm b/lib/ProductOpener/Display.pm index 5257a883b82b5..78e4058200046 100644 --- a/lib/ProductOpener/Display.pm +++ b/lib/ProductOpener/Display.pm @@ -10400,6 +10400,7 @@ sub display_product_history ($request_ref, $code, $product_ref) { my $userid = get_change_userid_or_uuid($change_ref); my $uuid = $change_ref->{app_uuid}; + my $app_version = $change_ref->{app_version}; my $comment = _format_comment($change_ref->{comment}); my $change_rev = $change_ref->{rev}; @@ -10416,6 +10417,7 @@ sub display_product_history ($request_ref, $code, $product_ref) { date => display_date_tag($change_ref->{t}), userid => $userid, uuid => $uuid, + app_version => $app_version, diffs => compute_changes_diff_text($change_ref), comment => $comment }; diff --git a/templates/web/pages/product/includes/edit_history.tt.html b/templates/web/pages/product/includes/edit_history.tt.html index 6e947b83a2fe6..73f3f337b0061 100644 --- a/templates/web/pages/product/includes/edit_history.tt.html +++ b/templates/web/pages/product/includes/edit_history.tt.html @@ -6,7 +6,7 @@

[% lang('history') %]