diff --git a/C4/Letters.pm b/C4/Letters.pm index bde0d2b0dc..781ad8372d 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -516,11 +516,12 @@ sub SendAlerts { return { error => $error } unless $success; + my $log_object = $action eq 'ACQUISITION ORDER' ? $externalid : undef; my $module = $action eq 'ACQUISITION ORDER' ? 'ACQUISITIONS' : 'CLAIMS'; logaction( $module, $action, - undef, + $log_object, "To=" . join( ',', @email ) . " Title=" diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 24fc22f669..d2c427d84c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -376,6 +376,12 @@ [% ELSE %] Biblio-level recall on biblio [% END %] + [% ELSIF ( loopro.module == 'ACQUISITIONS' && loopro.action == 'ACQUISITION ORDER' && loopro.object ) %] + [% IF ( CAN_user_acquisition_order_manage ) %] + Basket [% loopro.object | html %] + [% ELSE %] + Basket [% loopro.object | html %] + [% END %] [% ELSE %] [% loopro.object | html %] [% END %]