Bugzilla – Attachment 90273 Details for
Bug 23034
Warning when in Mana KB settings Auto subscription sharing is unchecked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Bug-23034-Remove-uninitialized-value-warning-in-Mana
0001-Bug-23034-Remove-uninitialized-value-warning-in-Mana.patch (text/plain), 1.48 KB, created by
Joonas Kylmälä
on 2019-06-03 15:17:41 UTC
(
hide
)
Description:
0001-Bug-23034-Remove-uninitialized-value-warning-in-Mana
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2019-06-03 15:17:41 UTC
Size:
1.48 KB
patch
obsolete
>From c43c800a98fc44708b5872999bafbcc1fea2b8f6 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= <joonas.kylmala@helsinki.fi> >Date: Mon, 3 Jun 2019 14:58:34 +0000 >Subject: [PATCH] Bug 23034: Remove uninitialized value warning in Mana KB > settings > >This gets rid of the warning "Use of uninitialized value $auto_share >in string ne at [...]" by initializing the variable with empty string. > >Test plan: >1) Go to page cgi-bin/koha/admin/share_content.pl and unselect "Auto > subscription sharing". Click "Save". >2) Check plack-error.log and notice the warning "Use of uninitialized > value $auto_share [...]" >3) Apply the patch and repeat the previous steps but now this time the > warning is gone in plack-error.log. >4) Make sure the AutoShareWithMana syspref with and without the patch > is in unselected state after clicking "Save". > >Sponsored-by: The National Library of Finland >--- > admin/share_content.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/admin/share_content.pl b/admin/share_content.pl >index 475771aad8..2e9a2588ad 100755 >--- a/admin/share_content.pl >+++ b/admin/share_content.pl >@@ -41,7 +41,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > my $op = $query->param('op') || q||; > > if ( $op eq 'save' ) { >- my $auto_share = $query->param('autosharewithmana'); >+ my $auto_share = $query->param('autosharewithmana') || q||; > my $mana = $query->param('mana'); > > C4::Context->set_preference('Mana', $mana); >-- >2.17.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 23034
:
90273
|
90776
|
90922