X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=catalogue%2Fupdateitem.pl;h=63514c1c939ccf39b704a4a0e4df87b73ce272d8;hb=b7cd95bcc909f7db330b5acbfcf9e8f817328a67;hp=7f93ee1d7939175515614a5b765188805d08b199;hpb=f21577986f8ff5da5fde88deaae2302a8b40dbe7;p=koha.git diff --git a/catalogue/updateitem.pl b/catalogue/updateitem.pl index 7f93ee1d79..63514c1c93 100755 --- a/catalogue/updateitem.pl +++ b/catalogue/updateitem.pl @@ -30,14 +30,14 @@ use C4::Reserves; my $cgi= new CGI; -my ($loggedinuser, $cookie, $sessionID) = checkauth($cgi, 0, {circulate => 'circulate_remaining_permissions'}, 'intranet'); +checkauth($cgi, 0, {circulate => 'circulate_remaining_permissions'}, 'intranet'); my $biblionumber=$cgi->param('biblionumber'); my $itemnumber=$cgi->param('itemnumber'); my $biblioitemnumber=$cgi->param('biblioitemnumber'); my $itemlost=$cgi->param('itemlost'); my $itemnotes=$cgi->param('itemnotes'); -my $wthdrawn=$cgi->param('wthdrawn'); +my $withdrawn=$cgi->param('withdrawn'); my $damaged=$cgi->param('damaged'); my $confirm=$cgi->param('confirm'); @@ -47,7 +47,7 @@ my $dbh = C4::Context->dbh; my $item_data_hashref = GetItem($itemnumber, undef); # make sure item statuses are set to 0 if empty or NULL -for ($damaged,$itemlost,$wthdrawn) { +for ($damaged,$itemlost,$withdrawn) { if (!$_ or $_ eq "") { $_ = 0; } @@ -56,14 +56,14 @@ for ($damaged,$itemlost,$wthdrawn) { # modify MARC item if input differs from items table. my $item_changes = {}; if (defined $itemnotes) { # i.e., itemnotes parameter passed from form - my ($loggedinuser, $cookie, $sessionID) = checkauth($cgi, 0, {editcatalogue => 'edit_items'}, 'intranet'); + checkauth($cgi, 0, {editcatalogue => 'edit_items'}, 'intranet'); if ((not defined $item_data_hashref->{'itemnotes'}) or $itemnotes ne $item_data_hashref->{'itemnotes'}) { $item_changes->{'itemnotes'} = $itemnotes; } } elsif ($itemlost ne $item_data_hashref->{'itemlost'}) { $item_changes->{'itemlost'} = $itemlost; -} elsif ($wthdrawn ne $item_data_hashref->{'wthdrawn'}) { - $item_changes->{'wthdrawn'} = $wthdrawn; +} elsif ($withdrawn ne $item_data_hashref->{'withdrawn'}) { + $item_changes->{'withdrawn'} = $withdrawn; } elsif ($damaged ne $item_data_hashref->{'damaged'}) { $item_changes->{'damaged'} = $damaged; } else {