Bugzilla – Attachment 2936 Details for
Bug 5569
addbiblio fails while editing and deleting mandatory repeatable subfields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Corrections-to-addbiblio.tmpl-to-be-able-to-delete-r.patch (text/plain), 1.73 KB, created by
Janusz Kaczmarek
on 2011-01-03 03:19:00 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2011-01-03 03:19:00 UTC
Size:
1.73 KB
patch
obsolete
>From 6a208f66328d3fa3a52c82a22cd9567322b2dc6b Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Mon, 3 Jan 2011 04:52:14 +0200 >Subject: [PATCH] Corrections to addbiblio.tmpl to be able to delete repetable mandatory subfields >Content-Type: text/plain; charset="utf-8" > >--- > .../prog/en/modules/cataloguing/addbiblio.tmpl | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >index 0fa4dc1..1bd0dac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >@@ -131,9 +131,11 @@ function AreMandatoriesNotOk(){ > var tag=mandatories[i].substr(4,3); > var subfield=mandatories[i].substr(17,1); > var tagnumber=mandatories[i].substr(19,mandatories[i].lastIndexOf("_")-19); >- tabflag[tag+subfield+tagnumber]=new Array(); >- tabflag[tag+subfield+tagnumber][0]=0; >- if( ! document.getElementById(mandatories[i]).value){ >+ if (tabflag[tag+subfield+tagnumber] == null) { >+ tabflag[tag+subfield+tagnumber]=new Array(); >+ tabflag[tag+subfield+tagnumber][0]=0; >+ } >+ if( tabflag[tag+subfield+tagnumber][0] != 1 && (document.getElementById(mandatories[i]) != null && ! document.getElementById(mandatories[i]).value || document.getElementById(mandatories[i]) == null)){ > tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ; > document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled'); > document.getElementById(mandatories[i]).focus(); >-- >1.5.6.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 5569
: 2936