Bugzilla – Attachment 16480 Details for
Bug 8015
Add MARC Modifications Templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8015: Fix bad parameter list for direct external call to update_field
Bug-8015-Fix-bad-parameter-list-for-direct-externa.patch (text/plain), 1.52 KB, created by
Fridolin Somers
on 2013-03-20 10:15:56 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8015: Fix bad parameter list for direct external call to update_field
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2013-03-20 10:15:56 UTC
Size:
1.52 KB
patch
obsolete
>From dff5b86f7a63d0a0a4bd7d1e1c299af02b849437 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 19 Mar 2013 08:39:28 -0700 >Subject: [PATCH] Bug 8015: Fix bad parameter list for direct external call to update_field > >Signed-off-by: Leila <koha.aixmarseille@gmail.com> >--- > C4/Koha.pm | 1 + > C4/MarcModificationTemplates.pm | 1 + > Koha/SimpleMARC.pm | 2 +- > 3 files changed, 3 insertions(+), 1 deletions(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index fd6f3f9..08271e0 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -1460,6 +1460,7 @@ sub _isbn_cleanup { > > sub Log { > my ($data) = @_; >+ warn $data; > open (MYFILE, '>>/tmp/koha.log'); > print MYFILE "$data\n"; > close (MYFILE); >diff --git a/C4/MarcModificationTemplates.pm b/C4/MarcModificationTemplates.pm >index 2c8bbaf..925f505 100644 >--- a/C4/MarcModificationTemplates.pm >+++ b/C4/MarcModificationTemplates.pm >@@ -529,6 +529,7 @@ sub ModifyRecordWithTemplate { > $field_value =~ s/__CURRENTDATE__/$current_date/g; > $field_value =~ s/__BRANCHCODE__/$branchcode/g; > >+ $eval .= " undef, " if ( $action eq 'update_field' ); > $eval .= " '$field_value' "; > > C4::Koha::Log( "Field value after replacements: $field_value" ) if ( DEBUG >= 3 ); >diff --git a/Koha/SimpleMARC.pm b/Koha/SimpleMARC.pm >index 8bfb621..f7f872b 100644 >--- a/Koha/SimpleMARC.pm >+++ b/Koha/SimpleMARC.pm >@@ -28,7 +28,7 @@ our @EXPORT = qw( > > our $VERSION = '0.01'; > >-our $debug = 10; >+our $debug = 0; > > =head1 NAME > >-- >1.7.2.5
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 8015
:
9313
|
9329
|
9330
|
9331
|
10089
|
11579
|
11607
|
11608
|
12280
|
12288
|
12569
|
12570
|
12571
|
12572
|
12839
|
12856
|
12857
|
12858
|
12859
|
12860
|
13121
|
13138
|
13495
|
14030
|
14031
|
14032
|
14033
|
14034
|
14035
|
14040
|
16330
|
16331
|
16332
|
16333
|
16334
|
16335
|
16363
|
16376
|
16377
|
16378
|
16379
|
16413
|
16415
|
16423
|
16455
|
16468
|
16470
|
16471
|
16472
|
16473
|
16475
|
16476
|
16477
|
16478
|
16479
|
16480
|
17036
|
17037
|
17038
|
18372
|
18441
|
21024
|
21025
|
21026
|
21027
|
21028
|
21029
|
21030
|
21031
|
21032
|
21033
|
21034
|
21035
|
21036
|
21037
|
21038
|
21371
|
21484
|
21485
|
21486
|
21487
|
21808
|
21809
|
21876
|
21901
|
21902
|
21903
|
21904
|
21905
|
21906
|
21907
|
21908
|
21909
|
21910
|
21911
|
21912
|
21913
|
21914
|
21915
|
21916
|
21917
|
21918
|
21919
|
21920
|
22185
|
22186
|
22187
|
22188
|
22189
|
22190
|
22284
|
22285
|
22290
|
22293
|
22392
|
22393
|
22394
|
22395
|
22396
|
22397
|
22398
|
22399
|
22400
|
22401