Bugzilla – Attachment 187767 Details for
Bug 40997
Javascript error prevents saving when an instance of an 'important field is deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40997: Remove uneccessary whitespace
Bug-40997-Remove-uneccessary-whitespace.patch (text/plain), 3.86 KB, created by
Nick Clemens (kidclamp)
on 2025-10-10 18:44:34 UTC
(
hide
)
Description:
Bug 40997: Remove uneccessary whitespace
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-10-10 18:44:34 UTC
Size:
3.86 KB
patch
obsolete
>From c3f4c8d4d662fc4bb279c58a04055fc360ce9ce6 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 10 Oct 2025 18:43:49 +0000 >Subject: [PATCH] Bug 40997: Remove uneccessary whitespace > >--- > .../prog/en/modules/cataloguing/addbiblio.tt | 40 +++++++++---------- > 1 file changed, 20 insertions(+), 20 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 2735d63672e..14cba537df0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -529,34 +529,34 @@ > var notFilledClass = "subfield_not_filled"; > > if (mandatory) { >- [% FOREACH BIG_LOO IN BIG_LOOP %] >- [% FOREACH innerloo IN BIG_LOO.innerloop %] >- [% IF ( innerloo.mandatory ) %] >+ [%- FOREACH BIG_LOO IN BIG_LOOP %] >+ [%- FOREACH innerloo IN BIG_LOO.innerloop %] >+ [%- IF ( innerloo.mandatory ) %] > fields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]", "[% BIG_LOO.number | html %]")); >- [% END %] >- [% FOREACH subfield_loo IN innerloo.subfield_loop %] >- [% IF ( subfield_loo.mandatory ) %]subfields.push("[% subfield_loo.id | html %]"); >+ [%- END %] >+ [%- FOREACH subfield_loo IN innerloo.subfield_loop %] >+ [%- IF ( subfield_loo.mandatory ) %]subfields.push("[% subfield_loo.id | html %]"); > tab.push("[% BIG_LOO.number | html %]"); > label.push("[% subfield_loo.marc_lib | $raw %]"); >- [% END %] >- [% END %] >- [% END %] >- [% END %] >+ [%- END %] >+ [%- END %] >+ [%- END %] >+ [%- END %] > StrAlert += "<h4>" + _("The following mandatory subfields aren't filled:") + "</h4>"; > } else { >- [% FOREACH BIG_LOO IN BIG_LOOP %] >- [% FOREACH innerloo IN BIG_LOO.innerloop %] >- [% IF ( innerloo.important ) %] >+ [%- FOREACH BIG_LOO IN BIG_LOOP %] >+ [%- FOREACH innerloo IN BIG_LOO.innerloop %] >+ [%- IF ( innerloo.important ) %] > fields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]", "[% BIG_LOO.number | html %]")); >- [% END %] >- [% FOREACH subfield_loo IN innerloo.subfield_loop %] >- [% IF ( subfield_loo.important ) %]subfields.push("[% subfield_loo.id | html %]"); >+ [%- END %] >+ [%- FOREACH subfield_loo IN innerloo.subfield_loop %] >+ [%- IF ( subfield_loo.important ) %]subfields.push("[% subfield_loo.id | html %]"); > tab.push("[% BIG_LOO.number | html %]"); > label.push("[% subfield_loo.marc_lib | $raw %]"); >- [% END %] >- [% END %] >- [% END %] >- [% END %] >+ [%- END %] >+ [%- END %] >+ [%- END %] >+ [%- END %] > StrAlert += "<h4>" + _("The following important subfields arenĂ¢t filled:") + "</h4>"; > notFilledClass = "important_subfield_not_filled"; > } >-- >2.39.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 40997
:
187766
| 187767