X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=admin%2Fitemtypes.pl;h=2c31a184bd749cd1c733845954e96864cfdef374;hb=8fbd3611edfe88e1068eac28dc2b91288a1f6b8b;hp=9f0395cdbc0f32fdae9e1af4bb0c0876d7b8d61a;hpb=f053d35a56238d7cda769ef8f52503e05e8f7545;p=koha.git diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index 9f0395cdbc..2c31a184bd 100755 --- a/admin/itemtypes.pl +++ b/admin/itemtypes.pl @@ -112,7 +112,6 @@ if ( $op eq 'add_form' ) { $template->param( itemtype => $itemtype, description => $data->{'description'}, - renewalsallowed => $data->{'renewalsallowed'}, rentalcharge => sprintf( "%.2f", $data->{'rentalcharge'} ), notforloan => $data->{'notforloan'}, imageurl => $data->{'imageurl'}, @@ -138,7 +137,6 @@ elsif ( $op eq 'add_validate' ) { my $query2 = ' UPDATE itemtypes SET description = ? - , renewalsallowed = ? , rentalcharge = ? , notforloan = ? , imageurl = ? @@ -148,7 +146,6 @@ elsif ( $op eq 'add_validate' ) { $sth = $dbh->prepare($query2); $sth->execute( $input->param('description'), - $input->param('renewalsallowed'), $input->param('rentalcharge'), ( $input->param('notforloan') ? 1 : 0 ), ( @@ -165,7 +162,7 @@ elsif ( $op eq 'add_validate' ) { else { # add a new itemtype & not modif an old my $query = " INSERT INTO itemtypes - (itemtype,description,renewalsallowed,rentalcharge, notforloan, imageurl,summary) + (itemtype,description,rentalcharge, notforloan, imageurl,summary) VALUES (?,?,?,?,?,?,?); "; @@ -174,7 +171,6 @@ elsif ( $op eq 'add_validate' ) { $sth->execute( $input->param('itemtype'), $input->param('description'), - $input->param('renewalsallowed'), $input->param('rentalcharge'), $input->param('notforloan') ? 1 : 0, $image eq 'removeImage' ? '' : @@ -204,14 +200,13 @@ elsif ( $op eq 'delete_confirm' ) { my $sth = $dbh->prepare( -"select itemtype,description,renewalsallowed,rentalcharge from itemtypes where itemtype=?" +"select itemtype,description,rentalcharge from itemtypes where itemtype=?" ); $sth->execute($itemtype); my $data = $sth->fetchrow_hashref; $template->param( itemtype => $itemtype, description => $data->{description}, - renewalsallowed => $data->{renewalsallowed}, rentalcharge => sprintf( "%.2f", $data->{rentalcharge} ), imageurl => $data->{imageurl}, total => $total