Bugzilla – Attachment 60329 Details for
Bug 18125
Edit button can duplicate some circulation rule
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Disabled the select for patron Category and Item Type
Disabled-the-select-for-patron-Category-and-Item-T.patch (text/plain), 1.34 KB, created by
Baptiste
on 2017-02-16 11:41:48 UTC
(
hide
)
Description:
Disabled the select for patron Category and Item Type
Filename:
MIME Type:
Creator:
Baptiste
Created:
2017-02-16 11:41:48 UTC
Size:
1.34 KB
patch
obsolete
>From 37122fec5ffbf8e8b329b26a9b4d67ea6f8b93d8 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Thu, 16 Feb 2017 11:37:53 +0000 >Subject: [PATCH] Disabled the select for patron Category and Item Type > >Test plan >1 - Edit a circulation rule and check you can modify the patron Category and item type >2 - Apply patch >3 - Edit a circulation rule : you can't change anymore > >https://bugs.koha-community.org/show_bug.cgi?id=18125 >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index d4451de..fe4a017 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -84,6 +84,7 @@ $(document).ready(function() { > if ( i == 1 ) { > name="itemtype"; > } >+ $(current_column).find("select").prop('disabled', true); > // Remove potential previous input added > $(current_column).find("input").remove(); > $(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); >-- >2.7.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 18125
:
60325
|
60329
|
63288