Bugzilla – Attachment 133207 Details for
Bug 26370
Add ability to disable demagnetizing items via SIP2 based on patron categories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26370: (QA follow-up) Rename option never_demagnitize to inhouse_patron_categories
Bug-26370-QA-follow-up-Rename-option-neverdemagnit.patch (text/plain), 4.00 KB, created by
Martin Renvoize (ashimema)
on 2022-04-12 09:38:38 UTC
(
hide
)
Description:
Bug 26370: (QA follow-up) Rename option never_demagnitize to inhouse_patron_categories
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-04-12 09:38:38 UTC
Size:
4.00 KB
patch
obsolete
>From bd717d42589d93a84df48010b0e712f266a288c6 Mon Sep 17 00:00:00 2001 >From: Kyle Hall <kyle@bywatersolutions.com> >Date: Mon, 11 Apr 2022 06:37:58 -0400 >Subject: [PATCH] Bug 26370: (QA follow-up) Rename option never_demagnitize to > inhouse_patron_categories > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/SIP/Sip/MsgType.pm | 2 +- > t/db_dependent/SIP/Message.t | 24 ++++++++++++------------ > 2 files changed, 13 insertions(+), 13 deletions(-) > >diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm >index 5cc65baa79..2f7ba7da0f 100644 >--- a/C4/SIP/Sip/MsgType.pm >+++ b/C4/SIP/Sip/MsgType.pm >@@ -1747,7 +1747,7 @@ sub desensitize { > my $patron = $params->{patron}; > my $server = $params->{server}; > >- my $patron_categories = $server->{account}->{never_demagnitize}; >+ my $patron_categories = $server->{account}->{inhouse_patron_categories}; > > # If no patron categories are set for never desensitize, no need to do anything > return $desensitize unless $patron_categories; >diff --git a/t/db_dependent/SIP/Message.t b/t/db_dependent/SIP/Message.t >index 46ca9b2253..485dc62e53 100755 >--- a/t/db_dependent/SIP/Message.t >+++ b/t/db_dependent/SIP/Message.t >@@ -906,22 +906,22 @@ sub test_checkout_desensitize { > > undef $response; > my $msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); >- $server->{account}->{never_demagnitize} = "A,$patron_category,Z"; >+ $server->{account}->{inhouse_patron_categories} = "A,$patron_category,Z"; > $msg->handle_checkout( $server ); > my $respcode = substr( $response, 5, 1 ); >- is( $respcode, 'N', "Desensitize flag was not set for patron category in never_demagnitize" ); >+ is( $respcode, 'N', "Desensitize flag was not set for patron category in inhouse_patron_categories" ); > > undef $response; >- $server->{account}->{never_demagnitize} = "A,B,C"; >+ $server->{account}->{inhouse_patron_categories} = "A,B,C"; > $msg->handle_checkout( $server ); > $respcode = substr( $response, 5, 1 ); >- is( $respcode, 'Y', "Desensitize flag was set for patron category not in never_demagnitize" ); >+ is( $respcode, 'Y', "Desensitize flag was set for patron category not in inhouse_patron_categories" ); > > undef $response; >- $server->{account}->{never_demagnitize} = ""; >+ $server->{account}->{inhouse_patron_categories} = ""; > $msg->handle_checkout( $server ); > $respcode = substr( $response, 5, 1 ); >- is( $respcode, 'Y', "Desensitize flag was set for empty never_demagnitize" ); >+ is( $respcode, 'Y', "Desensitize flag was set for empty inhouse_patron_categories" ); > } > > sub test_renew_desensitize { >@@ -972,22 +972,22 @@ sub test_renew_desensitize { > > undef $response; > my $msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); >- $server->{account}->{never_demagnitize} = "A,$patron_category,Z"; >+ $server->{account}->{inhouse_patron_categories} = "A,$patron_category,Z"; > $msg->handle_checkout( $server ); > my $respcode = substr( $response, 5, 1 ); >- is( $respcode, 'N', "Desensitize flag was not set for patron category in never_demagnitize" ); >+ is( $respcode, 'N', "Desensitize flag was not set for patron category in inhouse_patron_categories" ); > > undef $response; >- $server->{account}->{never_demagnitize} = "A,B,C"; >+ $server->{account}->{inhouse_patron_categories} = "A,B,C"; > $msg->handle_checkout( $server ); > $respcode = substr( $response, 5, 1 ); >- is( $respcode, 'Y', "Desensitize flag was set for patron category not in never_demagnitize" ); >+ is( $respcode, 'Y', "Desensitize flag was set for patron category not in inhouse_patron_categories" ); > > undef $response; >- $server->{account}->{never_demagnitize} = ""; >+ $server->{account}->{inhouse_patron_categories} = ""; > $msg->handle_checkout( $server ); > $respcode = substr( $response, 5, 1 ); >- is( $respcode, 'Y', "Desensitize flag was set for empty never_demagnitize" ); >+ is( $respcode, 'Y', "Desensitize flag was set for empty inhouse_patron_categories" ); > } > > # Helper routines >-- >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 26370
:
109630
|
120834
|
133144
|
133145
|
133146
|
133206
| 133207 |
133208