Bugzilla – Attachment 172181 Details for
Bug 36766
Add command-line utility to SFTP a file to a remote server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36766: (QA follow-up) Pass more variable to the template
Bug-36766-QA-follow-up-Pass-more-variable-to-the-t.patch (text/plain), 1.48 KB, created by
Kyle M Hall (khall)
on 2024-09-27 20:27:01 UTC
(
hide
)
Description:
Bug 36766: (QA follow-up) Pass more variable to the template
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-09-27 20:27:01 UTC
Size:
1.48 KB
patch
obsolete
>From e57768781c202d8de399ec8e656ec7edc12635b0 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 27 Sep 2024 16:20:18 -0400 >Subject: [PATCH] Bug 36766: (QA follow-up) Pass more variable to the template > >Libraries may want to use this for more varied purposes and >adjust the language of the email based on the sftp upload >that succeeded or failed. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/cronjobs/sftp_file.pl | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > >diff --git a/misc/cronjobs/sftp_file.pl b/misc/cronjobs/sftp_file.pl >index f01cba8789b..526f9d48829 100755 >--- a/misc/cronjobs/sftp_file.pl >+++ b/misc/cronjobs/sftp_file.pl >@@ -195,9 +195,16 @@ if ( $sftp->put( $fh, basename($file) ) ) { > if ($email) { > $status_email = C4::Letters::GetPreparedLetter( > module => 'commandline', >- letter_code => "SFTP_$sftp_status", #SFTP_SUCCESS, SFTP_FAILURE >+ letter_code => "SFTP_$sftp_status", #SFTP_SUCCESS, SFTP_FAILURE > message_transport_type => 'email', >- substitute => { sftp_error => $sftp->error } >+ substitute => { >+ sftp_error => $sftp->error, >+ email => $email, >+ file => $file, >+ host => $host, >+ upload_dir => $upload_dir, >+ user => $user, >+ } > ); > > C4::Letters::EnqueueLetter( >-- >2.39.5 (Apple Git-154)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36766
:
166085
|
166089
|
166471
|
166859
|
172151
|
172152
|
172153
|
172154
|
172161
|
172162
|
172163
|
172164
|
172176
|
172177
|
172178
|
172179
|
172180
| 172181 |
173596