UPDATE systempreferences SET value='' WHERE variable='EmailFieldPrimary';
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37757 Bug ID: 37757 Summary: notice_email_address explodes if EmailFieldPrimary is not valid Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: testopia@bugs.koha-community.org Found this in the wild on `22.11`, from the AutoEmailPrimaryAddress era. Which had the syspref set to an empty string. And was able to reproduce on `main`. To reproduce: 1. Have EmailFieldPrimary set to an empty string or NULL $ ktd --shell k$ koha-mysql kohadev 2. Enable `AutoEmailNewUser` 3. Create a new user => FAIL: Koha explodes like: ``` The method Koha::Patron-> is not covered by tests! Trace begun at /kohadevbox/koha/Koha/Object.pm line 992 Koha::Object::AUTOLOAD('Koha::Patron=HASH(0xaaaae37ac550)') called at /kohadevbox/koha/Koha/Patron.pm line 1662 Koha::Patron::notice_email_address('Koha::Patron=HASH(0xaaaae37ac550)') called at /kohadevbox/koha/members/memberentry.pl line 448 ... ``` -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.