Bugzilla – Attachment 47986 Details for
Bug 15514
New professional cataloguing editor does not handle repeatable fields correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15514: Fix error with certain repeatable fields in Rancor
Bug-15514-Fix-error-with-certain-repeatable-fields.patch (text/plain), 1.46 KB, created by
Kyle M Hall (khall)
on 2016-02-12 14:59:44 UTC
(
hide
)
Description:
Bug 15514: Fix error with certain repeatable fields in Rancor
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-02-12 14:59:44 UTC
Size:
1.46 KB
patch
obsolete
>From 99ca04e60ac6049024aad9c4b2be55e66bcb0d96 Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <jweaver@bywatersolutions.com> >Date: Wed, 27 Jan 2016 16:39:22 -0700 >Subject: [PATCH] Bug 15514: Fix error with certain repeatable fields in Rancor > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/lib/koha/cateditor/koha-backend.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/koha-backend.js b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/koha-backend.js >index f02ab97..9e393d3 100644 >--- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/koha-backend.js >+++ b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/koha-backend.js >@@ -224,7 +224,7 @@ define( [ '/cgi-bin/koha/svc/cataloguing/framework?frameworkcode=&callback=defin > var seenSubfields = {}; > > $.each( field.subfields(), function( undef, subfield ) { >- if ( seenSubfields[ subfield[0] ] != null && nonRepeatableSubfields[ field.tagnumber() ][ subfield[0] ] ) { >+ if ( seenSubfields[ subfield[0] ] != null && ( nonRepeatableSubfields[ field.tagnumber() ] || {} )[ subfield[0] ] ) { > errors.push( { type: 'unrepeatableSubfield', subfield: subfield[0], line: field.sourceLine } ); > } else { > seenSubfields[ subfield[0] ] = subfield[1]; >-- >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 15514
:
47085
|
47368
|
47377
| 47986