Bugzilla – Attachment 117238 Details for
Bug 27578
Searchid not initialized when adding a new record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27578: Initialize searchid as blank when not populated
Bug-27578-Initialize-searchid-as-blank-when-not-po.patch (text/plain), 1.27 KB, created by
Phil Ringnalda
on 2021-02-24 05:28:01 UTC
(
hide
)
Description:
Bug 27578: Initialize searchid as blank when not populated
Filename:
MIME Type:
Creator:
Phil Ringnalda
Created:
2021-02-24 05:28:01 UTC
Size:
1.27 KB
patch
obsolete
>From c325c67ac5343c9e98c9beb9de90db3e73e98d3c Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 29 Jan 2021 13:47:22 +0000 >Subject: [PATCH] Bug 27578: Initialize searchid as blank when not populated > >This patch simply sets the searchid to a blank string if not passed in > >To test: >1 - Add a new biblio and save it >2 - Check the logs: /var/log/koha/kohadev/plack-intranet-error.log (or similar) >3 - Note warn about uninitialized value >4 - Apply patch >5 - Add a new biblio >6 - No warn > >Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> >--- > cataloguing/addbiblio.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index a4614cc941..c378556979 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -699,7 +699,7 @@ my $op = $input->param('op') // q{}; > my $mode = $input->param('mode'); > my $frameworkcode = $input->param('frameworkcode'); > my $redirect = $input->param('redirect'); >-my $searchid = $input->param('searchid'); >+my $searchid = $input->param('searchid') // ""; > my $dbh = C4::Context->dbh; > my $hostbiblionumber = $input->param('hostbiblionumber'); > my $hostitemnumber = $input->param('hostitemnumber'); >-- >2.26.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 27578
:
116031
|
117238
|
117366