Bugzilla – Attachment 9518 Details for
Bug 7178
Improve order item creation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7178 follow-up: Fix check_additem when UniqueItemFields is empty
0002-Bug-7178-follow-up-Fix-check_additem-when-UniqueItem.patch (text/plain), 1.21 KB, created by
Julian Maurice
on 2012-05-11 14:43:07 UTC
(
hide
)
Description:
Bug 7178 follow-up: Fix check_additem when UniqueItemFields is empty
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-05-11 14:43:07 UTC
Size:
1.21 KB
patch
obsolete
>From 26937d43dae557bf8e1183e1cc58fb9839018328 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 11 May 2012 16:40:11 +0200 >Subject: [PATCH 2/2] Bug 7178 follow-up: Fix check_additem when > UniqueItemFields is empty > >--- > koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js >index 2d72de7..f892ca8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js >@@ -182,8 +182,11 @@ function check_additem(unique_item_fields) { > // Check if a value is duplicated in form > for ( field in array_fields ) { > var fieldname = array_fields[field]; >+ if (fieldname == '') { >+ continue; >+ } > var values = new Array(); >- $("[name='kohafield'][value=items."+array_fields[field]+"]").each(function(){ >+ $("[name='kohafield'][value=items."+ fieldname +"]").each(function(){ > var input = $(this).prevAll("input[name='field_value']")[0]; > if($(input).val()) { > values.push($(input).val()); >-- >1.7.10 >
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 7178
:
6233
|
7249
|
7279
|
7450
|
7806
|
7807
|
7892
|
7963
|
8558
|
8672
|
8715
|
8857
|
8886
|
9511
| 9518 |
9690