Bugzilla – Attachment 135855 Details for
Bug 30931
Handling of items.dateaccessioned in the item editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30931: Restore original intention of bug 29815
Bug-30931-Restore-original-intention-of-bug-29815.patch (text/plain), 1.22 KB, created by
Alex Buckley
on 2022-06-09 09:17:12 UTC
(
hide
)
Description:
Bug 30931: Restore original intention of bug 29815
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2022-06-09 09:17:12 UTC
Size:
1.22 KB
patch
obsolete
>From 0523db854cca01345ab12075d0f9f8c2e00977c3 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 7 Jun 2022 08:27:25 +0100 >Subject: [PATCH] Bug 30931: Restore original intention of bug 29815 > >This patch restores the original intended behaviour of bug 29815; To >pre-populate the dateaccessioned field on item creations only. >--- > C4/Items.pm | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 03305eba33..b03c6c92ec 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1707,6 +1707,15 @@ sub PrepareItemrecordDisplay { > $defaultvalue = $defaultvalues->{ccode}; > } > } >+ if ( ( $subfield->{kohafield} eq 'items.dateaccessioned' ) >+ && !$itemrecord >+ && $defaultvalues >+ && $defaultvalues->{'dateaccessioned'} ) >+ { >+ my $date = dt_from_string(); >+ $date = $date->ymd; >+ $defaultvalue = $date; >+ } > if ( $subfield->{authorised_value} ) { > my @authorised_values; > my %authorised_lib; >-- >2.20.1
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 30931
:
135854
| 135855 |
136663
|
147280