Bugzilla – Attachment 116031 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.21 KB, created by
Nick Clemens (kidclamp)
on 2021-01-29 13:49:23 UTC
(
hide
)
Description:
Bug 27578: Initialize searchid as blank when not populated
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-01-29 13:49:23 UTC
Size:
1.21 KB
patch
obsolete
>From 12553af5c4b86706d209c8b47fa29949e538c2b2 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 >--- > 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.11.0
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