Bugzilla – Attachment 99201 Details for
Bug 15522
New interface for revamped circulation rules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15522: Handle deprecated rules
Bug-15522-Handle-deprecated-rules.patch (text/plain), 1.50 KB, created by
Lisette Scheer
on 2020-02-18 18:43:03 UTC
(
hide
)
Description:
Bug 15522: Handle deprecated rules
Filename:
MIME Type:
Creator:
Lisette Scheer
Created:
2020-02-18 18:43:03 UTC
Size:
1.50 KB
patch
obsolete
>From 8eeed4496dbac1cee983faafd670702916b72281 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 26 Nov 2019 14:47:59 +0100 >Subject: [PATCH] Bug 15522: Handle deprecated rules > >For upgraded installs. Also add a log in the console if it happens. > >Signed-off-by: Lisette Scheer <lisettes@latahlibrary.org> >--- > koha-tmpl/intranet-tmpl/prog/js/src/admin/policy/rules.js | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/src/admin/policy/rules.js b/koha-tmpl/intranet-tmpl/prog/js/src/admin/policy/rules.js >index 54be602ccf..a46160eb9f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/src/admin/policy/rules.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/src/admin/policy/rules.js >@@ -52,6 +52,12 @@ export default ( window.rules = new class { > if ( !this.rules[ruleBranchCode][ruleCategoryCode][ruleItemType] ) continue; > > for ( let [ rule_name, rule_value ] of Object.entries( this.rules[ruleBranchCode][ruleCategoryCode][ruleItemType] ) ) { >+ >+ if ( $.inArray( ['restrictedtype', 'accountsent', 'reservecharge'], rule_name ) ) continue; >+ if (!(rule_name in RULE_KINDS)){ >+ console.log("A new rule " + rule_name + " has been added but not defined"); >+ } >+ > if ( scope_name !== undefined && scope_name != RULE_KINDS[rule_name].scope_name ) continue; > > result.push( { >-- >2.11.0
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 15522
:
68231
|
68232
|
68233
|
68234
|
68235
|
71048
|
71049
|
71050
|
71051
|
71052
|
72239
|
72242
|
91977
|
91978
|
91979
|
91980
|
91981
|
91982
|
91983
|
91984
|
94201
|
94202
|
94203
|
94204
|
94205
|
94206
|
94207
|
94208
|
99148
|
99149
|
99150
|
99151
|
99152
|
99153
|
99154
|
99155
|
99156
|
99157
|
99199
|
99200
|
99201
|
99202
|
99203
|
99204
|
99205
|
99206
|
99207
|
99208
|
99209
|
99210
|
99211
|
99213
|
99214
|
99215
|
101918
|
101919
|
101920
|
101921
|
101922
|
101923
|
101924
|
101925
|
101926
|
101927
|
101934
|
101935
|
101936
|
101937
|
101938
|
101939
|
101940
|
101941
|
101942
|
101943
|
101944
|
101945
|
101946
|
101947
|
106913
|
106914
|
106915
|
106916
|
106917
|
106918
|
106919
|
106920
|
106921
|
106922
|
106923
|
106924
|
106925
|
106926
|
112056
|
112057
|
112058
|
112059
|
112060
|
112061