[Koha-bugs] [Bug 17519] Item editor handles clearing dateaccessioned and replacementpricedate inconsistently

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Mar 12 11:32:36 CET 2017


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

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #56984|0                           |1
        is obsolete|                            |

--- Comment #2 from Marc Véron <veron at veron.ch> ---
Created attachment 61013
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61013&action=edit
Bug 17519: Item editor handles clearing dateaccessioned and
replacementpricedate inconsistently

This patch adds dateaccessioned to the hash built by Items routine
_build_default_values_for_mod_marc, used in ModItemFromMarc when modifying
an item.

Normally, dateaccessioned will already have a value, and this change has no
effect. The only exception is: when you modify an item and for some reason
want to clear the dateaccessioned field, the item editor did not respond
to that change. This change makes it possible to do so. This is consistent
with the other date in the item editor (replacementpricedate) where you can
already clear the date.

Test plan:
[1] Do not yet apply this patch.
[2] Try to clear date acquired and replacementpricedate in the Item editor.
    Save and check results.
    You should still find the original date acquired in the saved record.
[3] Apply the patch (restart Plack?), restore replacementpricedate, and
    repeat step 2. Both dates should be cleared.

Followed test plan, date acquired can be deleted as expected.
Signed-off-by: Marc Véron <veron at veron.ch>

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


More information about the Koha-bugs mailing list