From 063541045ffcfc6a3c8c1785166305a152db2a34 Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 9 Nov 2024 10:39:13 +0100 Subject: [PATCH] Fix searching draft transactions The data was missing for the Report to instantiate a translation. --- lib/LedgerSMB/Scripts/drafts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LedgerSMB/Scripts/drafts.pm b/lib/LedgerSMB/Scripts/drafts.pm index d2651f991e..4636df6d24 100644 --- a/lib/LedgerSMB/Scripts/drafts.pm +++ b/lib/LedgerSMB/Scripts/drafts.pm @@ -157,7 +157,7 @@ sub list_drafts { $request->open_form; return $request->render_report( LedgerSMB::Report::Unapproved::Drafts->new( - $request->%{ qw( reference type ) }, + $request->%{ qw( reference type language _locale ) }, formatter_options => $request->formatter_options, from_date => $request->parse_date( $request->{from_date} ), to_date => $request->parse_date( $request->{to_date} ),