Bugzilla – Attachment 154999 Details for
Bug 34431
Distinguish between status and status alias in ILL UI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34431: (QA follow-up) Fix duplicate backend options
Bug-34431-QA-follow-up-Fix-duplicate-backend-optio.patch (text/plain), 1.69 KB, created by
Pedro Amorim
on 2023-08-31 08:57:30 UTC
(
hide
)
Description:
Bug 34431: (QA follow-up) Fix duplicate backend options
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-08-31 08:57:30 UTC
Size:
1.69 KB
patch
obsolete
>From 49bf2aeb0553697888211628f8608c716304319d Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 31 Aug 2023 08:57:20 +0000 >Subject: [PATCH] Bug 34431: (QA follow-up) Fix duplicate backend options > >Prevent adding backend option if the option already exists >--- > koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >index 9c9f7e9c73..03f0eea996 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >@@ -501,10 +501,12 @@ $(document).ready(function() { > }, > success: function(backends){ > backends.sort((a, b) => a.ill_backend_id.localeCompare(b.ill_backend_id)).forEach(function(backend) { >- $('#illfilter_backend').append( >- '<option value="' + backend.ill_backend_id + >- '">' + backend.ill_backend_id + '</option>' >- ); >+ if( $('#illfilter_backend option[value=' + backend.ill_backend_id + ']').length == 0 ){ >+ $('#illfilter_backend').append( >+ '<option value="' + backend.ill_backend_id + >+ '">' + backend.ill_backend_id + '</option>' >+ ); >+ } > }); > > let all_existing_statuses = []; >@@ -537,7 +539,6 @@ $(document).ready(function() { > } > } > ) >- > } > }); > } >-- >2.30.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 34431
:
154034
|
154035
|
154036
|
154037
|
154289
|
154290
|
154291
|
154292
|
154301
|
154405
|
154406
|
154407
|
154408
|
154409
|
154410
|
154999
|
161104
|
161105
|
161106
|
161107
|
161108
|
161109
|
161110
|
161129
|
161130
|
161131
|
161132
|
161133
|
161134
|
161135