Bugzilla – Attachment 118131 Details for
Bug 27917
Make it clear that standing orders cannot create items at point of ordering
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27917: Prevent inconsistent create_items value
Bug-27917-Prevent-inconsistent-createitems-value.patch (text/plain), 1.71 KB, created by
Jonathan Druart
on 2021-03-11 14:37:34 UTC
(
hide
)
Description:
Bug 27917: Prevent inconsistent create_items value
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-03-11 14:37:34 UTC
Size:
1.71 KB
patch
obsolete
>From 7e0df573eb1d3543780bc0006e6661cc46beee22 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 11 Mar 2021 15:37:15 +0100 >Subject: [PATCH] Bug 27917: Prevent inconsistent create_items value > >--- > .../prog/en/modules/acqui/basketheader.tt | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt >index 82ad6c74e6..a90508e6dd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt >@@ -151,6 +151,27 @@ > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/acquisitions-menu.js") | $raw %] > [% Asset.js("js/acq.js") | $raw %] >+ <script> >+ function is_standing_trigger(){ >+ [% IF Koha.Preference('AcqCreateItem') == 'ordering' %] >+ $("#create_items>option[value=''").prop('disabled', true); >+ [% END %] >+ if ( $("#is_standing").is(":checked") ) { >+ $("#create_items>option[value='ordering'").prop('disabled', true); >+ } else { >+ $("#create_items>option[value='ordering'").prop('disabled', false); >+ } >+ if ( $("#create_items>option:selected").is(":disabled") ) { >+ $("#create_items>option:not([disabled]):first").prop('selected', true) >+ } >+ } >+ $(document).ready(function(){ >+ is_standing_trigger(); >+ $("#is_standing").on('change', function(){ >+ is_standing_trigger(); >+ }); >+ }); >+ </script> > [% END %] > > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.20.1
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 27917
: 118131