Bugzilla – Attachment 19706 Details for
Bug 10543
false mandatory warning in additem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 10543 - add mandatory subfield check to addorderiso2709.pl
SIGNED-OFF-Bug-10543---add-mandatory-subfield-chec.patch (text/plain), 1.96 KB, created by
Srdjan Jankovic
on 2013-07-17 02:38:52 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 10543 - add mandatory subfield check to addorderiso2709.pl
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2013-07-17 02:38:52 UTC
Size:
1.96 KB
patch
obsolete
>From 94399675c4d5d19dc213c5db4aa7ec7520a2a4ab Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 11 Jul 2013 16:33:33 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 10543 - add mandatory subfield check to > addorderiso2709.pl > >When adding orders from staged file, you can create one order per record using item form in the bottom of addorderiso2709.pl. >This form was missing check. > >Signed-off-by: Srdjan <srdjan@catalyst.net.nz> >--- > .../intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index 3627077..7e87f5e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -13,6 +13,7 @@ > [% INCLUDE 'datatables-strings.inc' %] > <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> > <script type="text/javascript" src="[% themelang %]/js/acq.js"></script> >+<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> > <script type="text/JavaScript"> > //<![CDATA[ > [% IF (dateformat == 'metric') %] >@@ -25,6 +26,18 @@ > ], > "sPaginationType": "four_button" > } ) ); >+ >+ $("form#Aform").submit(function() { >+ var total_errors = CheckMandatorySubfields(this); >+ if (total_errors > 0) { >+ var alertString = _("Form not submitted because of the following problem(s)"); >+ alertString += "\n------------------------------------------------------------------------------------\n"; >+ alertString += "\n- "+ total_errors + _(" mandatory fields empty (highlighted)"); >+ alert(alertString); >+ return false; >+ } >+ return true; >+ }); > }); > //]]> > </script> >-- >1.8.1.2
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 10543
:
19412
|
19572
|
19574
|
19576
|
19704
|
19705
|
19706
|
19980
|
19981
|
19982