Koha-clms/Koha/Edifact
Kyle M Hall 52eda9ba69
Bug 39904: EDIFACT error messages are malformed
Perl can interpolate hashrefs but not method calls. This results in messages like "Cannot connect to Koha::Schema::Result::VendorEdiAccount=HASH(0xaaab059252f0)->host: Name or service not known: My Test at ./misc/cronjobs/edi_cron.pl line 58." when running the edi_cron.pl cronjob.

Test Plan:
1) Enable EDIFACT
2) Create a fake EDI account with a bad FTP server in it
3) Run edi_cron.pl
4) Note the errors like:
    Cannot connect to Koha::Schema::Result::VendorEdiAccount=HASH(0xaaab059252f0)->host: Name or service not known: My Test at ./misc/cronjobs/edi_cron.pl line 58.
5) Apply this patch
6) Run edi_cron.pl
7) Note the errors are now like:
    Cannot connect to test.example.com: Name or service not known: My Test at ./misc/cronjobs/edi_cron.pl line 58.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 26e7c07302)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-10-03 15:40:44 +02:00
..
File.pm Bug 30070: EDIFACT and ID are abbreviations 2024-01-17 11:38:59 +01:00
Files.pm Bug 30070: Add fetch endpoint for EDI Files 2024-01-17 11:38:53 +01:00
Line.pm Bug 30135: Add EdifactLSQ mapping preference 2022-04-13 15:55:39 +02:00
Message.pm
…
Order.pm Bug 30135: Add EdifactLSQ mapping preference 2022-04-13 15:55:39 +02:00
Segment.pm
…
Transport.pm Bug 39904: EDIFACT error messages are malformed 2025-10-03 15:40:44 +02:00