Bugzilla – Attachment 153123 Details for
Bug 33105
Add vendor issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33105: Redirect to 404 if no vendor exists
Bug-33105-Redirect-to-404-if-no-vendor-exists.patch (text/plain), 808 bytes, created by
Jonathan Druart
on 2023-07-07 08:04:47 UTC
(
hide
)
Description:
Bug 33105: Redirect to 404 if no vendor exists
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-07 08:04:47 UTC
Size:
808 bytes
patch
obsolete
>From 3abe19a47a90f4b1ea785ca48c372b5e98a95432 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 7 Jul 2023 10:03:36 +0200 >Subject: [PATCH] Bug 33105: Redirect to 404 if no vendor exists > >--- > acqui/vendor_issues.pl | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/acqui/vendor_issues.pl b/acqui/vendor_issues.pl >index 561769c28e7..48a8ef703e1 100755 >--- a/acqui/vendor_issues.pl >+++ b/acqui/vendor_issues.pl >@@ -48,6 +48,11 @@ if ( $issue_id ) { > } > my $vendor = Koha::Acquisition::Booksellers->find($booksellerid); > >+unless ( $vendor ) { >+ print $input->redirect("/cgi-bin/koha/errors/404.pl"); >+ exit; >+} >+ > if ( $op eq 'add_form' || $op eq 'show' ) { > $template->param( issue => $issue ); > } elsif ( $op eq 'add_validate' ) { >-- >2.25.1
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 33105
:
149509
|
149510
|
149511
|
149512
|
149513
|
149514
|
149515
|
149530
|
149531
|
149532
|
149556
|
149557
|
149558
|
149559
|
149560
|
149561
|
149562
|
152894
|
152895
|
152896
|
152897
|
152898
|
152899
|
152900
|
153117
|
153118
|
153119
|
153122
|
153123
|
153125
|
153126
|
153127
|
153128
|
153129
|
153130
|
153131
|
153132
|
153133
|
153134
|
153135
|
153136
|
153137
|
153730
|
153731