[Koha-bugs] [Bug 29958] New: Dateaccessioned is set to todays date if missing when storing an item.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 27 13:39:17 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29958
Bug ID: 29958
Summary: Dateaccessioned is set to todays date if missing when
storing an item.
Change sponsored?: ---
Product: Koha
Version: 20.05
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Cataloging
Assignee: koha-bugs at lists.koha-community.org
Reporter: andreas.jonsson at kreablo.se
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at rijksmuseum.nl
In the work on bug 23463 the subroutine _set_defaults_for_add was removed in
commit 02134d7604a6fc08b88046fde87b6c909de04353.
This subroutine was called when a new item was added (in subroutines AddItem
and AddItemBatchFromMarc).
However, commit 02134d7604a6fc08b88046fde87b6c909de04353 adds this to the store
method of Koha::Item :
+ unless ( $self->dateaccessioned ) {
+ $self->dateaccessioned($today);
+ }
+
I'm guessing this migth have been a mistake, and it should have been added to
the new method?
The problem here is that libraries that have old items with dateaccessioned
NULL will gradually get their database filled with garbage dateaccessioned as
the date gets updated whenever the item is issued and therefore will be unable
to rely on the accuracy of dateaccessioned.
--
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