Bugzilla – Attachment 19576 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]
Bug 10543 - add mandatory subfield check to addorderiso2709.pl
0003-Bug-10543-add-mandatory-subfield-check-to-addorderis.patch (text/plain), 1.91 KB, created by
Fridolin Somers
on 2013-07-11 14:55:41 UTC
(
hide
)
Description:
Bug 10543 - add mandatory subfield check to addorderiso2709.pl
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2013-07-11 14:55:41 UTC
Size:
1.91 KB
patch
obsolete
>From 409d900ff4b9e43661c4bd99aa2c69b3089d8e6b 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 3/3] 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. >--- > .../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.7.10.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 10543
:
19412
|
19572
|
19574
|
19576
|
19704
|
19705
|
19706
|
19980
|
19981
|
19982