X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=acqui%2Fnewordersuggestion.pl;h=6bc0a6462f2651bd073baea2d1d0ca489004daa9;hb=refs%2Fheads%2Fkoha_ffzg;hp=a0e88e9232629389477c7c46a6a1be65689721c7;hpb=a6c9bd0eb55c32d5632625144775271f20aa15f7;p=koha.git diff --git a/acqui/newordersuggestion.pl b/acqui/newordersuggestion.pl index a0e88e9232..6bc0a6462f 100755 --- a/acqui/newordersuggestion.pl +++ b/acqui/newordersuggestion.pl @@ -88,8 +88,7 @@ can be equal to =cut -use strict; -#use warnings; FIXME - Bug 2505 +use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth; # get_template_and_user @@ -97,7 +96,7 @@ use C4::Output; use C4::Suggestions; use C4::Biblio; -use Koha::Acquisition::Bookseller; +use Koha::Acquisition::Booksellers; my $input = new CGI; @@ -137,12 +136,12 @@ my $suggestions_loop = SearchSuggestion( STATUS => 'ACCEPTED' } ); -my $vendor = Koha::Acquisition::Bookseller->fetch({ id => $booksellerid }); +my $vendor = Koha::Acquisition::Booksellers->find( $booksellerid ); $template->param( suggestions_loop => $suggestions_loop, basketno => $basketno, booksellerid => $booksellerid, - name => $vendor->{'name'}, + name => $vendor->name, loggedinuser => $borrowernumber, "op_$op" => 1, );