[Koha-bugs] [Bug 7352] New: moremember.pl generates error in Template.pm related to missing $key value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 13 18:17:17 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7352

             Bug #: 7352
           Summary: moremember.pl generates error in Template.pm related
                    to missing $key value
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: rel_3_6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Patrons
        AssignedTo: kyle.m.hall at gmail.com
        ReportedBy: fred.pierre at smfpl.org
         QAContact: ian.walls at bywatersolutions.com
                CC: gmcharlt at gmail.com


This is similar to bug 6840, but generating an error from the patron quick
search (search field at the top of the patron screen). We received errors
related to Template.pm missing a $key value. The patch for bug 6840 partially
patches the error, but still generates tons of log messages when circ accesses
the patron detail screen, so we altered the moremember.pl around line 474 to
omit the "$error => 1," and editing the error parameter as follows:

---------------------------------------------------
    overdues_exist  => $overdues_exist,
    error           => 0,
    StaffMember     => ($category_type eq 'S'),
---------------------------------------------------


Then we added this status check for errors to the moremember.pl at new line
485, following the close of the original template value definition:
---------------------------------------------------

#addition to test error parameter status
if ( $error ) {
    $template -> param (
        $error => 1,
        error => 1,
    );
}

-----------------------------------------
Here is the original error message:

moremember.pl: Use of uninitialized value $key in hash element at
/home/koha/kohaclone/C4/Templates.pm line 227., referer:
http://koha.smfpl.org/cgi-bin/koha/members/member.pl

Here is the error message, after patching 6801:

moremember.pl: Problem = a value of 1 has been passed to param without key at
/home/koha/kohaclone/C4/Templates.pm line 230., referer:
http://koha.smfpl.org/cgi-bin/koha/circ/circulation.pl

After our patch, listed above, there are no further error messages being
generated from the moremember.pl patron detail screen.

-- 
Configure bugmail: http://bugs.koha-community.org/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