| Summary: | Import users expiry date default does not apply | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Bernard <bernard.scaife> |
| Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | minor | ||
| Priority: | P5 - low | CC: | gmcharlt, kyle |
| Version: | 24.11 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34883 | ||
| GIT URL: | https://github.com/Koha-Community/Koha/commit/f4f77357f63013a21e700f14df82ca9261403310 | Initiative type: | --- |
| Sponsorship status: | --- | Crowdfunding goal: | 0 |
| Patch complexity: | --- | Documentation contact: | |
| Documentation submission: | Text to go in the release notes: | ||
| Version(s) released in: | Circulation function: | ||
|
Description
Bernard
2025-10-22 15:59:43 UTC
I think the problem occurs in Koha/Patrons/Import.pm at line 295-6
$borrower{$col} = $member->{$col}
if $col eq 'dateexpiry' && ( !$csvkeycol{$col} || !$columns[ $csvkeycol{$col} ] );
The above evaluates to TRUE and resets the expiry date to its database value rather than the default that was set previously and has persisted until here. Hence it is not modified as requested.
Note other default values (eg City) work fine.
|