[Koha-bugs] [Bug 22059] New: Wrong exception parameters in Koha::Patron->set_password

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 2 13:55:23 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22059

            Bug ID: 22059
           Summary: Wrong exception parameters in
                    Koha::Patron->set_password
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org
  Target Milestone: ---

Exception::Class requires parameters to be passed as a list instead of a
hashref. Then

this is wrong:
Koha::Exceptions::Password::TooShort->throw({ length => $password_length,
min_length => $min_length });

this is ok:
Koha::Exceptions::Password::TooShort->throw( length => $password_length,
min_length => $min_length );

This is a minor issue anyway, preventing exceptions from being stringified
correctly.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list