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 Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
286f151009
commit
0df3fc3dae
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue