Bugzilla – Attachment 61013 Details for
Bug 17519
Item editor handles clearing dateaccessioned and replacementpricedate inconsistently
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17519: Item editor handles clearing dateaccessioned and replacementpricedate inconsistently
Bug-17519-Item-editor-handles-clearing-dateaccessi.patch (text/plain), 1.85 KB, created by
Marc Véron
on 2017-03-12 10:32:36 UTC
(
hide
)
Description:
Bug 17519: Item editor handles clearing dateaccessioned and replacementpricedate inconsistently
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-03-12 10:32:36 UTC
Size:
1.85 KB
patch
obsolete
>From 4161c926b9caa4c4b3549db657efbf71fba8860d Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 31 Oct 2016 10:28:15 +0100 >Subject: [PATCH] Bug 17519: Item editor handles clearing dateaccessioned and > replacementpricedate inconsistently >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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@veron.ch> >--- > C4/Items.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 8f177b0..b7dd751 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -462,6 +462,7 @@ sub _build_default_values_for_mod_marc { > coded_location_qualifier => undef, > copynumber => undef, > damaged => 0, >+ dateaccessioned => undef, > enumchron => undef, > holdingbranch => undef, > homebranch => undef, >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17519
:
56984
| 61013