[Bug 23463] New: Move C4::Items CRUD subroutines to Koha::Item
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Bug ID: 23463 Summary: Move C4::Items CRUD subroutines to Koha::Item Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: jonathan.druart@bugs.koha-community.org Reporter: jonathan.druart@bugs.koha-community.org QA Contact: testopia@bugs.koha-community.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- This patchset will be quite big and will move the following C4::Items subroutines to the Koha namespace: AddItem ModItem DelItem ItemSafeToDelete DelItemCheck SearchItemsByField UpdateHoldingbranch _koha_new_item _koha_modify_item _set_defaults_for_add _set_derived_columns_for_add _do_column_fixes_for_mod _set_derived_columns_for_mod _build_default_values_for_mod_marc _get_single_item_column _calc_items_cn_sort _mod_item_dates _after_item_action_hooks -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com, | |nick@bywatersolutions.com, | |tomascohen@gmail.com --- Comment #2 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I have pushed a WIP branch to: https://gitlab.com/joubu/Koha/commits/bug_23463 The branch is ready for testing (but still not clean enough to be integrated). Early feedbacks welcomed! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |18252 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18252 [Bug 18252] Move C4::Items code to the Koha namespace -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #3 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Remote branch has been rebased. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_20_05_target -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #4 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Lets hit this one hard beginning of next cycle :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |24107 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24107 [Bug 24107] Returns.pl fetches the same item from the database multiple times -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #5 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95899 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95899&action=edit Bug 23463: Replace SearchItemsByField by SearchItems The subroutine SearchItemsByField is only called once and can be replaced easily with SearchItems -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #6 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95900 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95900&action=edit Bug 23463: Remove uneeded SearchItemsByField subroutine It is no longer used. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #7 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95901 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95901&action=edit Bug 23463: fix for testbuilder - set default value items.damaged=0 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95902 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95902&action=edit Bug 23463: Replace AddItem calls with Koha::Item->store -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #9 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95903 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95903&action=edit Bug 23463: Remove _set_defaults_for_add _set_defaults_for_add is no longer needed as it is handled by dbic and koha::object->store -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #10 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95904 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95904&action=edit Bug 23463: Replace _set_derived_columns_for_add Remove the unique call to _set_derived_columns_for_add Even if design to deal with other values it only dealts with cn_sort -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #11 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95905 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95905&action=edit Bug 23463: AddItem removing We are done with AddItem, only need to log and index. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #12 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95906 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95906&action=edit Bug 23463: Replace ModItem with Koha::Item->store Starting to replace the ModItem calls with Koha::Item->store -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #13 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95907 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95907&action=edit Bug 23463: remove trivial UpdateHoldingbranch sub We do not need this subroutine, moving it where it is used. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #14 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95908 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95908&action=edit Bug 23463: Move plugin hook
From C4::Items to Koha::Item
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #15 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95909 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95909&action=edit Bug 23463: _set_derived_columns_for_mod was only used for cn_sort Same as _set_defaults_for_add -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #16 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95910 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95910&action=edit Bug 23463: _do_column_fixes_for_mod dealt with integer location and timestamp moved That's done in Koha::Item->store, and Koha::Object->store for integers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #17 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95911 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95911&action=edit Bug 23463: Remove _mod_item_dates We did not do anything useful here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #18 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95912 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95912&action=edit Bug 23463: Remove ModItem There should not be any calls left -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #19 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95913 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95913&action=edit Bug 23463: Remove DelItem -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #20 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95914 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95914&action=edit Bug 23463: Remove DelItemCheck and ItemSafeToDelete -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #21 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95915 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95915&action=edit Bug 23463: Remove no longer needed subs related to default values -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #22 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95916 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95916&action=edit Bug 23463: Fix CancelReceipt.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #23 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95917 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95917&action=edit Bug 23463: Fix failing tests And adding a FIXME about discard_changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #24 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95918 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95918&action=edit Bug 23463: Getting less item-level_itypes warnings (?) So, we get less warnings. I do not really understand why... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #25 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95919 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95919&action=edit Bug 23463: Fix AutomaticItemModificationByAge.t We do not want to log if nothing changed How could we do that better? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #26 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95920 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95920&action=edit Bug 23463: update permanent_location if location has been updated This change to Koha::Item->store seems correct here, but tests from /db_dependent/Items.t is failing now. Adjusting them to make them pass. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #27 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95921 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95921&action=edit Bug 23463: Fix items.cn_source vs cn_source -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #28 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95922 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95922&action=edit Bug 23463: build cn_sort only if needed No need to calculate cn_sort if not dirty when we store -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #29 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95923 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95923&action=edit Bug 23463: Replace recently added occurrences Few occurrences have been added since this patchset has been originaly written -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #30 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Comment on attachment 95922 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95922 Bug 23463: build cn_sort only if needed Review of attachment 95922: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=23463&attachment=95922) ----------------------------------------------------------------- ::: Koha/Item.pm @@ +74,5 @@
$self->itype($self->biblio->biblioitem->itemtype); }
+ my %updated_columns = $self->_result->get_dirty_columns; + if ( exists $updated_columns{itemcallnumber} ) {
We should also update the cn_sort if cn_source was changed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #31 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 95925 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95925&action=edit Bug 23463: cn_sort needs to be updated if cn_source changed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #32 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Katrin Fischer from comment #30)
Comment on attachment 95922 [details] [review] Bug 23463: build cn_sort only if needed
Review of attachment 95922 [details] [review]: -----------------------------------------------------------------
::: Koha/Item.pm @@ +74,5 @@
$self->itype($self->biblio->biblioitem->itemtype); }
+ my %updated_columns = $self->_result->get_dirty_columns; + if ( exists $updated_columns{itemcallnumber} ) {
We should also update the cn_sort if cn_source was changed.
Indeed, thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |8132 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8132 [Bug 8132] Batch delete tool deletes items with holds on them -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #33 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 96145 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96145&action=edit Bug 23463: (follow-up) Remove DelItemCheck and ItemSafeToDelete Wrong replacement in additem.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #34 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- This is on my list for early January -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #35 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Rebased against master. Leaving ASSIGNED while I QA this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #96145|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95899|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95900|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95901|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95902|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95903|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95904|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95905|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95906|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95907|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95908|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95909|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95910|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95911|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95912|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95913|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95914|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95915|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95916|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95917|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95918|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95919|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95920|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95921|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95922|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95923|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #95925|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #36 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97895 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97895&action=edit Bug 23463: Replace SearchItemsByField by SearchItems The subroutine SearchItemsByField is only called once and can be replaced easily with SearchItems Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #37 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97896 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97896&action=edit Bug 23463: Remove uneeded SearchItemsByField subroutine It is no longer used. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #38 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97897 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97897&action=edit Bug 23463: fix for testbuilder - set default value items.damaged=0 Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #39 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97898 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97898&action=edit Bug 23463: Replace AddItem calls with Koha::Item->store Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #40 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97899 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97899&action=edit Bug 23463: Remove _set_defaults_for_add _set_defaults_for_add is no longer needed as it is handled by dbic and koha::object->store -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #41 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97900 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97900&action=edit Bug 23463: Replace _set_derived_columns_for_add Remove the unique call to _set_derived_columns_for_add Even if design to deal with other values it only dealts with cn_sort -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #42 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97901 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97901&action=edit Bug 23463: AddItem removing We are done with AddItem, only need to log and index. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #43 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97902 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97902&action=edit Bug 23463: Replace ModItem with Koha::Item->store Starting to replace the ModItem calls with Koha::Item->store -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #44 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97903 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97903&action=edit Bug 23463: remove trivial UpdateHoldingbranch sub We do not need this subroutine, moving it where it is used. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #45 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97904 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97904&action=edit Bug 23463: Move plugin hook
From C4::Items to Koha::Item
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #46 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97905 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97905&action=edit Bug 23463: _set_derived_columns_for_mod was only used for cn_sort Same as _set_defaults_for_add -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #47 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97906 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97906&action=edit Bug 23463: _do_column_fixes_for_mod dealt with integer location and timestamp moved That's done in Koha::Item->store, and Koha::Object->store for integers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #48 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97907 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97907&action=edit Bug 23463: Remove _mod_item_dates We did not do anything useful here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #49 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97908 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97908&action=edit Bug 23463: Remove ModItem There should not be any calls left -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #50 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97909 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97909&action=edit Bug 23463: Remove DelItem -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #51 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97910 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97910&action=edit Bug 23463: Remove DelItemCheck and ItemSafeToDelete -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #52 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97911 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97911&action=edit Bug 23463: Remove no longer needed subs related to default values -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #53 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97912 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97912&action=edit Bug 23463: Fix CancelReceipt.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #54 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97913 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97913&action=edit Bug 23463: Fix failing tests And adding a FIXME about discard_changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #55 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97914 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97914&action=edit Bug 23463: Getting less item-level_itypes warnings (?) So, we get less warnings. I do not really understand why... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #56 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97915 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97915&action=edit Bug 23463: Fix AutomaticItemModificationByAge.t We do not want to log if nothing changed How could we do that better? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #57 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97916 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97916&action=edit Bug 23463: update permanent_location if location has been updated This change to Koha::Item->store seems correct here, but tests from /db_dependent/Items.t is failing now. Adjusting them to make them pass. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #58 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97917 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97917&action=edit Bug 23463: Fix items.cn_source vs cn_source -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #59 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97918 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97918&action=edit Bug 23463: build cn_sort only if needed No need to calculate cn_sort if not dirty when we store -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #60 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97919 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97919&action=edit Bug 23463: Replace recently added occurrences Few occurrences have been added since this patchset has been originaly written -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #61 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97920 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97920&action=edit Bug 23463: cn_sort needs to be updated if cn_source changed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #62 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97921 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97921&action=edit Bug 23463: (follow-up) Remove DelItemCheck and ItemSafeToDelete Wrong replacement in additem.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97920|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97921|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97895|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97896|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97897|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97898|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97899|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97900|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97901|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97902|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97903|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97904|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97905|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97906|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97907|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97908|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97909|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97910|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97911|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97912|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97913|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97914|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97915|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97916|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97917|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97918|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97919|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://gitlab.com/joubu/Ko | |ha/commits/bug_23463 --- Comment #63 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Patches rebased and remote branch updated. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |20271 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20271 [Bug 20271] Merge deleted biblio, biblioitems, biblio_metadata, and items tables with their "alive" cousins -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #64 from Tomás Cohen Arazi <tomascohen@gmail.com> --- About the timestamp handling: shouldn't we better implement Koha::Object->set_and_store of similar, that instead of overwriting the whole object, just sets the really changed fields, and we leave the DB do the heavy lifting? It looks wrong (as you also say, Jonathan) to be setting the timestamp manually on the ->store method (be it in the Koha::Item class, or as a generic approach in Koha::Object) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #65 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #64)
About the timestamp handling: shouldn't we better implement Koha::Object->set_and_store of similar, that instead of overwriting the whole object, just sets the really changed fields, and we leave the DB do the heavy lifting? It looks wrong (as you also say, Jonathan) to be setting the timestamp manually on the ->store method (be it in the Koha::Item class, or as a generic approach in Koha::Object)
I have added a follow-up to the branch. Still not optimal however. I am on a "less regressions as possible" approach here. We will certainly want/need to improve later. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #66 from Tomás Cohen Arazi <tomascohen@gmail.com> --- I tested this branch (which Jonathan rebased against master) and: - Some tests were failing due to old and new rebase issues: fixed! - Some typos in controllers and libs: fixed! I'm not 100% comfortable with the legacy approaches to avoid regressions, but I AGREE they are better than breaking things in large scale. This way we can start writing the API for items in a way that we are sure will preserve behaviour, one page at a time, so all good! I tested: STAFF - Search results - Detail view - Edit/add/delete items - Circulation, placing holds - Course reserves - Acquisition workflows - Batch item modification - Batch item deletion OPAC - Course reserves - Search results, detail view - Reading history - Shelf browser I'm confident about this patchset at this stage. Jonathan: please add my signature to your branch's commits. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff --- Comment #67 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #66)
Jonathan: please add my signature to your branch's commits.
Done, thanks Tomas! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off Version|unspecified |master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #68 from Nick Clemens <nick@bywatersolutions.com> --- Testing btoh with mariadb_d9 and mariadb_d10 I was unable to blank any fields in items, either individually or via batch edit - things like 'onloan' and 'itemlost_on' are successfully nulled as they should be. Two test failures: # Failed test 'Syntax check misc/migration_tools/fix_onloan.pl' # at /usr/share/perl5/Test/Strict.pm line 423. # Unmatched right curly bracket at misc/migration_tools/fix_onloan.pl line 20, at end of line # syntax error at misc/migration_tools/fix_onloan.pl line 20, near "}" # misc/migration_tools/fix_onloan.pl had compilation errors. # Looks like you failed 1 test of 706. # Failed test 'reference if positive itemtype notforloan value' # at t/db_dependent/XSLT.t line 57. # '<items xmlns="http://www.koha-community.org/items"><item><homebranch>FwkGdaAK</homebranch><holdingbranch>FwkGdaAK</holdingbranch><location></location><ccode></ccode><status>available</status><itemcallnumber></itemcallnumber><stocknumber></stocknumber></item></items>' # doesn't match '(?^u:<status>reference</status>)' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #69 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Nick Clemens from comment #68)
Testing btoh with mariadb_d9 and mariadb_d10 I was unable to blank any fields in items, either individually or via batch edit - things like 'onloan' and 'itemlost_on' are successfully nulled as they should be.
Fixed, see "Use new method Koha::Object->set_or_blank"
Two test failures:
# Failed test 'Syntax check misc/migration_tools/fix_onloan.pl' # at /usr/share/perl5/Test/Strict.pm line 423. # Unmatched right curly bracket at misc/migration_tools/fix_onloan.pl line 20, at end of line # syntax error at misc/migration_tools/fix_onloan.pl line 20, near "}" # misc/migration_tools/fix_onloan.pl had compilation errors. # Looks like you failed 1 test of 706.
Fixed!
# Failed test 'reference if positive itemtype notforloan value' # at t/db_dependent/XSLT.t line 57. # '<items xmlns="http://www.koha-community.org/items"><item><homebranch>FwkGdaAK</ homebranch><holdingbranch>FwkGdaAK</holdingbranch><location></ location><ccode></ccode><status>available</status><itemcallnumber></ itemcallnumber><stocknumber></stocknumber></item></items>' # doesn't match '(?^u:<status>reference</status>)'
Fixed! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #70 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #69)
(In reply to Nick Clemens from comment #68)
Testing btoh with mariadb_d9 and mariadb_d10 I was unable to blank any fields in items, either individually or via batch edit - things like 'onloan' and 'itemlost_on' are successfully nulled as they should be.
Fixed, see "Use new method Koha::Object->set_or_blank"
Batch modification to blank fields is still now working. Individual edits do work. Importing and replacing items does not work - the process hangs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #71 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Nick Clemens from comment #70)
(In reply to Jonathan Druart from comment #69)
(In reply to Nick Clemens from comment #68)
Testing btoh with mariadb_d9 and mariadb_d10 I was unable to blank any fields in items, either individually or via batch edit - things like 'onloan' and 'itemlost_on' are successfully nulled as they should be.
Fixed, see "Use new method Koha::Object->set_or_blank"
Batch modification to blank fields is still now working. Individual edits do work.
I fixed that one.
Importing and replacing items does not work - the process hangs.
I am not sure about that one. I got "DBD::mysql::st execute failed: Incorrect integer value: 'duplicate item barcode' for column 'itemnumber'" But not sure it's a bug from master or not. Could you retry the import? If it fails, can you remove 334 close STDOUT; 335 close STDERR; from tools/manage-marc-import.pl To get the error in the logs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #72 from Nick Clemens <nick@bywatersolutions.com> --- Last follow-up fixes those issues, everything else I tried worked well. Passing QA, excellent work here -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #73 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101151 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101151&action=edit Bug 23463: Replace SearchItemsByField by SearchItems The subroutine SearchItemsByField is only called once and can be replaced easily with SearchItems Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #74 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101152 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101152&action=edit Bug 23463: Remove uneeded SearchItemsByField subroutine It is no longer used. Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #75 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101153 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101153&action=edit Bug 23463: fix for testbuilder - set default value items.damaged=0 Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #76 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101154 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101154&action=edit Bug 23463: Replace AddItem calls with Koha::Item->store Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #77 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101156 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101156&action=edit Bug 23463: Remove _set_defaults_for_add _set_defaults_for_add is no longer needed as it is handled by dbic and koha::object->store Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #78 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101157 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101157&action=edit Bug 23463: Replace _set_derived_columns_for_add Remove the unique call to _set_derived_columns_for_add Even if design to deal with other values it only dealts with cn_sort Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #79 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101158 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101158&action=edit Bug 23463: AddItem removing We are done with AddItem, only need to log and index. Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #80 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101161 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101161&action=edit Bug 23463: Replace ModItem with Koha::Item->store Starting to replace the ModItem calls with Koha::Item->store Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #81 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101163 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101163&action=edit Bug 23463: remove trivial UpdateHoldingbranch sub We do not need this subroutine, moving it where it is used. Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #82 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101165 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101165&action=edit Bug 23463: Move plugin hook
From C4::Items to Koha::Item
Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #83 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101167 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101167&action=edit Bug 23463: _set_derived_columns_for_mod was only used for cn_sort Same as _set_defaults_for_add Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #84 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101169 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101169&action=edit Bug 23463: _do_column_fixes_for_mod dealt with integer location and timestamp moved That's done in Koha::Item->store, and Koha::Object->store for integers. Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #85 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101170 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101170&action=edit Bug 23463: Remove _mod_item_dates We did not do anything useful here. Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #86 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101171 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101171&action=edit Bug 23463: Remove ModItem There should not be any calls left Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #87 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101172 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101172&action=edit Bug 23463: Remove DelItem Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #88 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101173 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101173&action=edit Bug 23463: Remove DelItemCheck and ItemSafeToDelete Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #89 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101174 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101174&action=edit Bug 23463: Remove no longer needed subs related to default values Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #90 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101175 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101175&action=edit Bug 23463: Fix CancelReceipt.t Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #91 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101176 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101176&action=edit Bug 23463: Fix failing tests And adding a FIXME about discard_changes Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #92 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101177 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101177&action=edit Bug 23463: Getting less item-level_itypes warnings (?) So, we get less warnings. I do not really understand why... Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #93 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101178 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101178&action=edit Bug 23463: Fix AutomaticItemModificationByAge.t We do not want to log if nothing changed How could we do that better? Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #94 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101179 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101179&action=edit Bug 23463: update permanent_location if location has been updated This change to Koha::Item->store seems correct here, but tests from /db_dependent/Items.t is failing now. Adjusting them to make them pass. Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #95 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101180 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101180&action=edit Bug 23463: Fix items.cn_source vs cn_source Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #96 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101181 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101181&action=edit Bug 23463: build cn_sort only if needed No need to calculate cn_sort if not dirty when we store Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #97 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101182 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101182&action=edit Bug 23463: Replace recently added occurrences Few occurrences have been added since this patchset has been originaly written Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #98 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101183 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101183&action=edit Bug 23463: cn_sort needs to be updated if cn_source changed Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #99 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101184 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101184&action=edit Bug 23463: (follow-up) Remove DelItemCheck and ItemSafeToDelete Wrong replacement in additem.pl Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #100 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101185 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101185&action=edit Bug 23463: Fix timestamp default value This sounds wrong as we should let the DBMS do that, but it was failing. Here we are doing the same as Koha::Patron->store for dateenrolled To recreate the failure, prove t/db_dependent/Koha/Item.t without this patch: DBD::mysql::st execute failed: Column 'timestamp' cannot be null [for Statement "UPDATE `items` SET `more_subfields_xml` = ?, `timestamp` = ? WHERE ( `itemnumber` = ? )" with ParamValues: 0='<?xml version="1.0" encoding="UTF-8"?> Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #101 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101186 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101186&action=edit Bug 23463: Move DelItem.t and Items_DelItemCheck.t tests to a Koha/Item.t subtest Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #102 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101188 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101188&action=edit Bug 23463: (follow-up) Fix timestamp default value For discussion, this patch revert the changes made previously. This line exists in Koha::Item->store as it is the translation of: if (exists $item->{'timestamp'}) { delete $item->{'timestamp'}; } that was coming from _do_column_fixes_for_mod (called from ModItem) To preserve existing behavior I would be in favor of keeping it like that to avoid regression, and deal with it separately if we want to improve/remove it. So basically here we are setting it to undef in Koha::Item->store to make it handle correctly by the parent Koha::Object->store. I agree that's kind of weird and must be improved. Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #103 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101189 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101189&action=edit Bug 23463: Fix safe_return return value in deletion tools Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #104 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101190 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101190&action=edit Bug 23463: Fix tests Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #105 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101191 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101191&action=edit Bug 23463: Fix IsItemIssued.t It seems that some of those tests could be removed as safe_delete is widely tested in Koha/Item.t Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #106 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101192 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101192&action=edit Bug 23463: Fix cn_source for new item get_dirty_columns only work for existing items. This fixes t/db_dependent/ShelfBrowser.t Signed-off-by: Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #107 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101193 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101193&action=edit Bug 23463: Fix XSLT.t
From commit bf49eecdd87e2b29760226281ab1afc0a185c7f0 Bug 23463: Replace AddItem calls with Koha::Item->store
in build_sample_item: - my $itype = delete $args->{itype} - || $self->build_object( { class => 'Koha::ItemTypes' } )->itemtype; + # If itype is not passed it will be picked from the biblio (see Koha::Item->store) So before we generated a new itemtype if not passed, now we pick the one from biblioitem->itemtype. For this specific test we need to make sure they are different. Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #108 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101194 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101194&action=edit Bug 23463: Replace new occurrence of AddItem Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #109 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101195 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101195&action=edit Bug 23463: Use new method Koha::Object->set_or_blank This patch fixes an issue when editing items. * The issue Cannot blank a subfield when editing an item. If you have an item with itemcallnumber=42, then edit it, blank it and save. The itemcallnumber is still 42 * Why? (line numbers from https://gitlab.com/joubu/Koha/-/tree/bug_23463) additem (and other item's edition forms) receives a list of tags, subfields and values, generates a MARC::Record::XML then calls ModItemFromMarc: 717 my $itemtosave=MARC::Record::new_from_xml($xml, 'UTF-8'); 727 my $newitem = ModItemFromMarc($itemtosave, $biblionumber, $itemnumber); And ModItemFromMarc: 282 my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); 283 $item->{cn_source} = delete $item->{'items.cn_source'}; # Because of C4::Biblio::_disambiguate 284 $item_object->set($item); ModItemFromMarc never knows that the field has been blank. Prior to bug 23463 we had a map of default values, and ModItemFromMarc was doing: 426 my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); 427 my $default_values = _build_default_values_for_mod_marc(); 428 foreach my $item_field ( keys %$default_values ) { 429 $item->{$item_field} = $default_values->{$item_field} 430 unless exists $item->{$item_field}; 431 } I do not want to reinsert that list of default values. Here I wrote a generic method in Koha::Object to set the value passed in parameter, or "blank" if not passed. It's nulled if can be set to null in DB, or the default value is retrieved from the schema info. Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #110 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101196 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101196&action=edit Bug 23463: (follow-up 2) Fix timestamp default value Removing previous change, again. But this time in Object.pm It fixes t/db_dependent/Koha/Object.t and t/db_dependent/Koha/Item.t is still passing. Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #111 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101197 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101197&action=edit Bug 23463: Fix items.cn_sort vs cn_sort Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #101151|0 |1 is obsolete| | Attachment #101152|0 |1 is obsolete| | Attachment #101153|0 |1 is obsolete| | Attachment #101154|0 |1 is obsolete| | Attachment #101156|0 |1 is obsolete| | Attachment #101157|0 |1 is obsolete| | Attachment #101158|0 |1 is obsolete| | Attachment #101161|0 |1 is obsolete| | Attachment #101163|0 |1 is obsolete| | Attachment #101165|0 |1 is obsolete| | Attachment #101167|0 |1 is obsolete| | Attachment #101169|0 |1 is obsolete| | Attachment #101170|0 |1 is obsolete| | Attachment #101171|0 |1 is obsolete| | Attachment #101172|0 |1 is obsolete| | Attachment #101173|0 |1 is obsolete| | Attachment #101174|0 |1 is obsolete| | Attachment #101175|0 |1 is obsolete| | Attachment #101176|0 |1 is obsolete| | Attachment #101177|0 |1 is obsolete| | Attachment #101178|0 |1 is obsolete| | Attachment #101179|0 |1 is obsolete| | Attachment #101180|0 |1 is obsolete| | Attachment #101181|0 |1 is obsolete| | Attachment #101182|0 |1 is obsolete| | Attachment #101183|0 |1 is obsolete| | Attachment #101184|0 |1 is obsolete| | Attachment #101185|0 |1 is obsolete| | Attachment #101186|0 |1 is obsolete| | Attachment #101188|0 |1 is obsolete| | Attachment #101189|0 |1 is obsolete| | Attachment #101190|0 |1 is obsolete| | Attachment #101191|0 |1 is obsolete| | Attachment #101192|0 |1 is obsolete| | Attachment #101193|0 |1 is obsolete| | Attachment #101194|0 |1 is obsolete| | Attachment #101195|0 |1 is obsolete| | Attachment #101196|0 |1 is obsolete| | Attachment #101197|0 |1 is obsolete| | --- Comment #112 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101246 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101246&action=edit Bug 23463: Replace SearchItemsByField by SearchItems The subroutine SearchItemsByField is only called once and can be replaced easily with SearchItems Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #113 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101247 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101247&action=edit Bug 23463: Remove uneeded SearchItemsByField subroutine It is no longer used. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #114 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101248 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101248&action=edit Bug 23463: fix for testbuilder - set default value items.damaged=0 Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #115 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101249 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101249&action=edit Bug 23463: Replace AddItem calls with Koha::Item->store Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #116 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101250 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101250&action=edit Bug 23463: Remove _set_defaults_for_add _set_defaults_for_add is no longer needed as it is handled by dbic and koha::object->store Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #117 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101251 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101251&action=edit Bug 23463: Replace _set_derived_columns_for_add Remove the unique call to _set_derived_columns_for_add Even if design to deal with other values it only dealts with cn_sort Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #118 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101252 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101252&action=edit Bug 23463: AddItem removing We are done with AddItem, only need to log and index. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #119 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101253 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101253&action=edit Bug 23463: Replace ModItem with Koha::Item->store Starting to replace the ModItem calls with Koha::Item->store Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #120 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101254 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101254&action=edit Bug 23463: remove trivial UpdateHoldingbranch sub We do not need this subroutine, moving it where it is used. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #121 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101255 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101255&action=edit Bug 23463: Move plugin hook
From C4::Items to Koha::Item
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #122 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101256 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101256&action=edit Bug 23463: _set_derived_columns_for_mod was only used for cn_sort Same as _set_defaults_for_add Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #123 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101257 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101257&action=edit Bug 23463: _do_column_fixes_for_mod dealt with integer location and timestamp moved That's done in Koha::Item->store, and Koha::Object->store for integers. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #124 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101258 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101258&action=edit Bug 23463: Remove _mod_item_dates We did not do anything useful here. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #125 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101259 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101259&action=edit Bug 23463: Remove ModItem There should not be any calls left Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #126 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101260 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101260&action=edit Bug 23463: Remove DelItem Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #127 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101261 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101261&action=edit Bug 23463: Remove DelItemCheck and ItemSafeToDelete Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #128 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101262 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101262&action=edit Bug 23463: Remove no longer needed subs related to default values Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #129 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101263 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101263&action=edit Bug 23463: Fix CancelReceipt.t Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #130 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101264 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101264&action=edit Bug 23463: Fix failing tests And adding a FIXME about discard_changes Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #131 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101265 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101265&action=edit Bug 23463: Getting less item-level_itypes warnings (?) So, we get less warnings. I do not really understand why... Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #132 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101266 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101266&action=edit Bug 23463: Fix AutomaticItemModificationByAge.t We do not want to log if nothing changed How could we do that better? Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #133 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101267 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101267&action=edit Bug 23463: update permanent_location if location has been updated This change to Koha::Item->store seems correct here, but tests from /db_dependent/Items.t is failing now. Adjusting them to make them pass. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #134 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101268 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101268&action=edit Bug 23463: Fix items.cn_source vs cn_source Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #135 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101269 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101269&action=edit Bug 23463: build cn_sort only if needed No need to calculate cn_sort if not dirty when we store Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #136 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101270 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101270&action=edit Bug 23463: Replace recently added occurrences Few occurrences have been added since this patchset has been originaly written Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #137 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101271 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101271&action=edit Bug 23463: cn_sort needs to be updated if cn_source changed Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #138 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101272 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101272&action=edit Bug 23463: (follow-up) Remove DelItemCheck and ItemSafeToDelete Wrong replacement in additem.pl Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #139 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101273 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101273&action=edit Bug 23463: Fix timestamp default value This sounds wrong as we should let the DBMS do that, but it was failing. Here we are doing the same as Koha::Patron->store for dateenrolled To recreate the failure, prove t/db_dependent/Koha/Item.t without this patch: DBD::mysql::st execute failed: Column 'timestamp' cannot be null [for Statement "UPDATE `items` SET `more_subfields_xml` = ?, `timestamp` = ? WHERE ( `itemnumber` = ? )" with ParamValues: 0='<?xml version="1.0" encoding="UTF-8"?> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #140 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101274 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101274&action=edit Bug 23463: Move DelItem.t and Items_DelItemCheck.t tests to a Koha/Item.t subtest Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #141 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101275 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101275&action=edit Bug 23463: (follow-up) Fix timestamp default value For discussion, this patch revert the changes made previously. This line exists in Koha::Item->store as it is the translation of: if (exists $item->{'timestamp'}) { delete $item->{'timestamp'}; } that was coming from _do_column_fixes_for_mod (called from ModItem) To preserve existing behavior I would be in favor of keeping it like that to avoid regression, and deal with it separately if we want to improve/remove it. So basically here we are setting it to undef in Koha::Item->store to make it handle correctly by the parent Koha::Object->store. I agree that's kind of weird and must be improved. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #142 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101276 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101276&action=edit Bug 23463: Fix safe_return return value in deletion tools Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #143 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101277 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101277&action=edit Bug 23463: Fix tests Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #144 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101278 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101278&action=edit Bug 23463: Fix IsItemIssued.t It seems that some of those tests could be removed as safe_delete is widely tested in Koha/Item.t Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #145 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101279 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101279&action=edit Bug 23463: Fix cn_source for new item get_dirty_columns only work for existing items. This fixes t/db_dependent/ShelfBrowser.t Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #146 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101280 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101280&action=edit Bug 23463: Fix XSLT.t
From commit bf49eecdd87e2b29760226281ab1afc0a185c7f0 Bug 23463: Replace AddItem calls with Koha::Item->store
in build_sample_item: - my $itype = delete $args->{itype} - || $self->build_object( { class => 'Koha::ItemTypes' } )->itemtype; + # If itype is not passed it will be picked from the biblio (see Koha::Item->store) So before we generated a new itemtype if not passed, now we pick the one from biblioitem->itemtype. For this specific test we need to make sure they are different. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #147 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101281 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101281&action=edit Bug 23463: Replace new occurrence of AddItem Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #148 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101282 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101282&action=edit Bug 23463: Use new method Koha::Object->set_or_blank This patch fixes an issue when editing items. * The issue Cannot blank a subfield when editing an item. If you have an item with itemcallnumber=42, then edit it, blank it and save. The itemcallnumber is still 42 * Why? (line numbers from https://gitlab.com/joubu/Koha/-/tree/bug_23463) additem (and other item's edition forms) receives a list of tags, subfields and values, generates a MARC::Record::XML then calls ModItemFromMarc: 717 my $itemtosave=MARC::Record::new_from_xml($xml, 'UTF-8'); 727 my $newitem = ModItemFromMarc($itemtosave, $biblionumber, $itemnumber); And ModItemFromMarc: 282 my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); 283 $item->{cn_source} = delete $item->{'items.cn_source'}; # Because of C4::Biblio::_disambiguate 284 $item_object->set($item); ModItemFromMarc never knows that the field has been blank. Prior to bug 23463 we had a map of default values, and ModItemFromMarc was doing: 426 my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); 427 my $default_values = _build_default_values_for_mod_marc(); 428 foreach my $item_field ( keys %$default_values ) { 429 $item->{$item_field} = $default_values->{$item_field} 430 unless exists $item->{$item_field}; 431 } I do not want to reinsert that list of default values. Here I wrote a generic method in Koha::Object to set the value passed in parameter, or "blank" if not passed. It's nulled if can be set to null in DB, or the default value is retrieved from the schema info. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #149 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101283 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101283&action=edit Bug 23463: (follow-up 2) Fix timestamp default value Removing previous change, again. But this time in Object.pm It fixes t/db_dependent/Koha/Object.t and t/db_dependent/Koha/Item.t is still passing. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #150 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101284 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101284&action=edit Bug 23463: Fix items.cn_sort vs cn_sort Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |20.05.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #151 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Nice work everyone! Pushed to master for 20.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #152 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101413 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101413&action=edit Bug 23463: Replace a new occurrence of ModItem This new script have been pushed just before 23463. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #153 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101414 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101414&action=edit Bug 23463: Fix CourseReserves/CourseItems.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #154 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 101415 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101415&action=edit Bug 23463: (RM follow-up) Add try block around Illrequest item creation The recently introduced Ill item creation for circulation feature was not properly handling the move from AddItem to Koha::Item->new()->store. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #155 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101416 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101416&action=edit Bug 23463: Fix wrong variable name Fix for t/db_dependent/Labels/t_Batch.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #156 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101432 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101432&action=edit Bug 23463: Fix selenium tests (highlight a bug in date management) There is something wrong, and a regression has been caught by those tests: If an invalid date is passed from the add item form, the app now crashes. Before: * if the date was completely invalid, the field was blanked silently * DateTime::Format::MySQL was used to convert dates, and it's not strict at all. For instance, what happened in the selenium tests for dateaccessionned: %Y-%m-%d was prefilled by the framework plugin, then the biblionumber was added, we ended with something like (eg for today) 2020-03-234242 (with biblionumber=4242). DateTime::Format::MySQL converts that to 2020-03-23 We must deal with invalid dates, but I do not think it is good to add it back to Koha::Item->store, we will prefer to raise the error to the end user, saying that something went wrong (and more specifically the dates). The (ugly) trick was in C4::Items::_mod_item_dates -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #157 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Congratulations, Jonathan -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #158 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 101476 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101476&action=edit Bug 23463: (follow-up 3) Fix timestamp default value This is the only situation I found where: * t/db_dependent/Koha/Item.t is passing * t/db_dependent/Koha/Object.t is passing * MySQL 8 is happy (and not fail with "Column 'timestamp' cannot be null"), which is certainly what I missed in the previous follow-up I think we should remove the lines from the overloaded ->store method (Item and Patron), but then we need Object.t to be adjusted. I do not understand why we would need to set updated_on, maybe the test is wrong? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #101476|0 |1 is obsolete| | --- Comment #159 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 102071 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102071&action=edit Bug 23463: (follow-up 3) Fix timestamp default value This is the only situation I found where: * t/db_dependent/Koha/Item.t is passing * t/db_dependent/Koha/Object.t is passing * MySQL 8 is happy (and not fail with "Column 'timestamp' cannot be null"), which is certainly what I missed in the previous follow-up About the change to Object.t: the next store was called without the generated timestamp, so it is needed to call discard_changes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #160 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Final follow-up pushed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #161 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Let the customization fun start ;) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Joy Nelson <joy@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joy@bywatersolutions.com --- Comment #162 from Joy Nelson <joy@bywatersolutions.com> --- not backported to 19.11.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_20_05_candidate | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #163 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- $item_object->more_subfields_xml(_get_unlinked_subfields_xml($unlinked_item_subfields))->store; $item_object->store; Is this double store call intentional ? C4/Items ModItemFromMarc -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #164 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Marcel de Rooy from comment #163)
$item_object-
more_subfields_xml(_get_unlinked_subfields_xml($unlinked_item_subfields))- store; $item_object->store;
Is this double store call intentional ? C4/Items ModItemFromMarc
Nope! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #165 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 103129 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103129&action=edit Bug 23463: Remove double store call -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #166 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Nice work everyone! Pushed to master for 20.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |25248 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25248 [Bug 25248] Delete All Items should redirect to detail.pl, not additem.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 didier <didier.gautheron@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |25608 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25608 [Bug 25608] Regression: Bug 23463 broke inventory -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aleisha@catalyst.net.nz Status|Pushed to master |Pushed to stable --- Comment #167 from Aleisha Amohia <aleisha@catalyst.net.nz> --- enhancement, not backported to 19.11.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |25964 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25964 [Bug 25964] Data loss possible when items are modified -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26134 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26134 [Bug 26134] Error when adding to basket from new/staged file when using MARCItemFieldsToOrder -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26082 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26082 [Bug 26082] Follow up to bug 23463 - need to call Koha::Item store to get itemnumber -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26268 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26268 [Bug 26268] Remove items.paidfor once and for all -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26470 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26470 [Bug 26470] itemnumber not available for plugin hook -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26438 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26438 [Bug 26438] Follow up to bug 23463 - return from Koha::Item overwrites existing variable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26507 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26507 [Bug 26507] New items not indexed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26675 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26675 [Bug 26675] Typo in line 341 of process_koc.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26987 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26987 [Bug 26987] No property notforloan for Koha::Serial::Item -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 --- Comment #168 from Blou <philippe.blouin@inlibro.com> --- Created attachment 113581 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113581&action=edit Bug 26948: Regression tests We already mock the send_or_die method from Email::Stuffer; This patch updates that mock to extract the internal representation of the email encoded message and looks for a known double encoded representation of a character in the sample body. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Blou <blou@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Blou <philippe.blouin@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |philippe.blouin@inlibro.com Attachment #113581|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26992 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26992 [Bug 26992] On serial collection page, impossible to delete issues and related items -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26557 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26557 [Bug 26557] Batch import fails when incoming records contain itemnumber -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26750 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26750 [Bug 26750] Deleted items are not removed from index -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27003 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27003 [Bug 27003] action_logs table error when adding an item -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27509 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27509 [Bug 27509] cn_sort value is lost when editing an item without changing cn_source or itemcallnumber -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27837 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27837 [Bug 27837] Permanent location is reverted to location when location updated and permanent_location mapped to MARC field -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27963 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27963 [Bug 27963] touch_all_items.pl script is not working at all -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27808 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27808 [Bug 27808] Item's onloan column remains unset if a checked out item is issued to another patron without being returned first -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28015 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28015 [Bug 28015] Inventory tool fails when timeformat=12h -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28028 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28028 [Bug 28028] fix_onloan.pl broken by bug 23463 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27819 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27819 [Bug 27819] Spurious errors when running delete_records_via_leader.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28255 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28255 [Bug 28255] Follow up to bug 23463 - use item_object in misc/cronjobs/delete_items.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29794 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29794 [Bug 29794] delete_items.pl missing include -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org