[Koha-bugs] [Bug 4210] Acquisitions suggestion templates have library name field, but data is not passed

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Thu Feb 25 18:42:31 CET 2010


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4210





--- Comment #3 from Jane Wagner <jwagner at ptfs.com>  2010-02-25 17:42:30 ---
I think I've found the right place to fix this in current head (code has moved
from Suggestions.pm to suggestion.pl).  Is adding LibraryName into this section
correct?

foreach my $element qw(managedby suggestedby){
#    $debug || warn $$suggestion_ref{$element};
    if ($$suggestion_ref{$element}){
        my $member=GetMember(borrowernumber=>$$suggestion_ref{$element});
        $template->param(
            $element."_borrowernumber"=>$$member{borrowernumber},
            $element."_firstname"=>$$member{firstname},
            $element."_surname"=>$$member{surname},
            $element."_branchcode"=>$$member{branchcode},
            $element."_LibraryName"=>C4::Context->preference("LibraryName"),
            $element."_description"=>$$member{description},
            $element."_category_type"=>$$member{category_type}
        );
    }
}


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list