Bugzilla – Attachment 110602 Details for
Bug 26516
Importing records with unexpected format of copyrightdate fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26516: Check if int before save
Bug-26516-Check-if-int-before-save.patch (text/plain), 1.21 KB, created by
Nick Clemens (kidclamp)
on 2020-09-23 14:42:17 UTC
(
hide
)
Description:
Bug 26516: Check if int before save
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-09-23 14:42:17 UTC
Size:
1.21 KB
patch
obsolete
>From 97c98c6607fc3925bb5c9ed832e217f4ce0a4d90 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 23 Sep 2020 14:41:10 +0000 >Subject: [PATCH] Bug 26516: Check if int before save > >This is how we handle it when modifying a biblio > >To test: >To recreate: >1 - Add a new record to Koha making sure data is valid except 260$c: > 198- >2 - Save the record >3 - It fails >4 - Apply patch >5 - restart all the things >6 - Repeat >7 - Success! >--- > C4/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 97fa95aeb1..3d9ae0c371 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -2741,7 +2741,7 @@ sub _koha_add_biblio { > $sth->execute( > $frameworkcode, $biblio->{'author'}, $biblio->{'title'}, $biblio->{'subtitle'}, > $biblio->{'medium'}, $biblio->{'part_number'}, $biblio->{'part_name'}, $biblio->{'unititle'}, >- $biblio->{'notes'}, $biblio->{'serial'}, $biblio->{'seriestitle'}, $biblio->{'copyrightdate'}, >+ $biblio->{'notes'}, $biblio->{'serial'}, $biblio->{'seriestitle'}, $biblio->{'copyrightdate'} ? int($biblio->{'copyrightdate'}) : undef, > $biblio->{'abstract'} > ); > >-- >2.11.0
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 26516
:
110602
|
110605
|
112905
|
113655