[Koha-bugs] [Bug 13851] Replace waiting holds logic in circulation.pl with Koha Objects
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 17 19:21:02 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13851
--- Comment #12 from Kyle M Hall <kyle at bywatersolutions.com> ---
> There is a lack of tests for new module added by this patch.
I'll add some unit tests!
> ::: Koha/Hold.pm
> @@ +45,5 @@
> > +
> > +sub biblio {
> > + my ($self) = @_;
> > +
> > + $self->{_biblio} ||= Koha::Biblios->find( $self->biblionumber() );
>
> Why not
> return $self->{_result}->biblio;
> ?
That would return a DBIC restultset and not a Koha::Biblios object.
> ::: koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
> @@ +763,5 @@
> >
> > + [% IF ( WaitingHolds ) %]
> > + <div id="holdswaiting" class="circmessage">
> > + <h4>Holds waiting:</h4>
> > + [% FOREACH w IN WaitingHolds %]
>
> WaitingHolds is an array??
> You have passed
> WaitingHolds => scalar $holds->waiting()
> in the pl script.
WaitingHolds is a Koha::Holds object, which Template Toolkit can iterate over.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list