Bugzilla – Attachment 56984 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.71 KB, created by
Marcel de Rooy
on 2016-10-31 09:52:52 UTC
(
hide
)
Description:
Bug 17519: Item editor handles clearing dateaccessioned and replacementpricedate inconsistently
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-10-31 09:52:52 UTC
Size:
1.71 KB
patch
obsolete
>From 6d30bfad9bbe8517137176d7ae24258d2c601454 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 >Content-Type: text/plain; charset=utf-8 > >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. >--- > C4/Items.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Items.pm b/C4/Items.pm >index baafdc2..9c3cc09 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -474,6 +474,7 @@ sub _build_default_values_for_mod_marc { > coded_location_qualifier => undef, > copynumber => undef, > damaged => 0, >+ dateaccessioned => undef, > enumchron => undef, > holdingbranch => undef, > homebranch => undef, >-- >1.7.10.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