Bugzilla – Attachment 36143 Details for
Bug 13159
Enhancements to the SIP2 command line emulator
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13159 [QA Followup] - Fix flag parameters
Bug-13159-QA-Followup---Fix-flag-parameters.patch (text/plain), 4.25 KB, created by
Kyle M Hall (khall)
on 2015-02-24 14:59:46 UTC
(
hide
)
Description:
Bug 13159 [QA Followup] - Fix flag parameters
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-02-24 14:59:46 UTC
Size:
4.25 KB
patch
obsolete
>From b52d45c0f86ea412a36d8c4fcfdd385b6680c16c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 24 Feb 2015 09:59:19 -0500 >Subject: [PATCH] Bug 13159 [QA Followup] - Fix flag parameters > >--- > C4/SIP/sip_cli_emulator.pl | 36 ++++++++++++++++++------------------ > 1 files changed, 18 insertions(+), 18 deletions(-) > >diff --git a/C4/SIP/sip_cli_emulator.pl b/C4/SIP/sip_cli_emulator.pl >index c2a23ce..3eb063f 100755 >--- a/C4/SIP/sip_cli_emulator.pl >+++ b/C4/SIP/sip_cli_emulator.pl >@@ -347,8 +347,8 @@ sub build_item_information_command_message { > sub build_checkout_command_message { > my ($params) = @_; > >- my $SC_renewal_policy = $params->{SC_renewal_policy}; >- my $no_block = $params->{no_block}; >+ my $SC_renewal_policy = $params->{SC_renewal_policy} || 'N'; >+ my $no_block = $params->{no_block} || 'N'; > my $transaction_date = $params->{transaction_date}; > my $nb_due_date = $params->{nb_due_date}; > my $institution_id = $params->{institution_id}; >@@ -357,13 +357,13 @@ sub build_checkout_command_message { > my $terminal_password = $params->{terminal_password}; > my $item_properties = $params->{item_properties}; > my $patron_password = $params->{patron_password}; >- my $fee_acknowledged = $params->{fee_acknowledged}; >- my $cancel = $params->{cancel}; >+ my $fee_acknowledged = $params->{fee_acknowledged} || 'N'; >+ my $cancel = $params->{cancel} || 'N'; > >- $SC_renewal_policy = $SC_renewal_policy ? 'Y' : 'N'; >- $no_block = $no_block ? 'Y' : 'N'; >- $fee_acknowledged = $fee_acknowledged ? 'Y' : 'N'; >- $cancel = $cancel ? 'Y' : 'N'; >+ $SC_renewal_policy = $SC_renewal_policy eq 'Y' ? 'Y' : 'N'; >+ $no_block = $no_block eq 'Y' ? 'Y' : 'N'; >+ $fee_acknowledged = $fee_acknowledged eq 'Y' ? 'Y' : 'N'; >+ $cancel = $cancel eq 'Y' ? 'Y' : 'N'; > > $nb_due_date ||= $transaction_date; > >@@ -386,7 +386,7 @@ sub build_checkout_command_message { > sub build_checkin_command_message { > my ($params) = @_; > >- my $no_block = $params->{no_block}; >+ my $no_block = $params->{no_block} || 'N'; > my $transaction_date = $params->{transaction_date}; > my $return_date = $params->{return_date}; > my $current_location = $params->{current_location}; >@@ -394,10 +394,10 @@ sub build_checkin_command_message { > my $item_identifier = $params->{item_identifier}; > my $terminal_password = $params->{terminal_password}; > my $item_properties = $params->{item_properties}; >- my $cancel = $params->{cancel}; >+ my $cancel = $params->{cancel} || 'N'; > >- $no_block = $no_block ? 'Y' : 'N'; >- $cancel = $cancel ? 'Y' : 'N'; >+ $no_block = $no_block eq 'Y' ? 'Y' : 'N'; >+ $cancel = $cancel eq 'Y' ? 'Y' : 'N'; > > $return_date ||= $transaction_date; > >@@ -417,8 +417,8 @@ sub build_checkin_command_message { > sub build_renew_command_message { > my ($params) = @_; > >- my $third_party_allowed = $params->{third_party_allowed}; >- my $no_block = $params->{no_block}; >+ my $third_party_allowed = $params->{third_party_allowed} || 'N'; >+ my $no_block = $params->{no_block} || 'N'; > my $transaction_date = $params->{transaction_date}; > my $nb_due_date = $params->{nb_due_date}; > my $institution_id = $params->{institution_id}; >@@ -428,11 +428,11 @@ sub build_renew_command_message { > my $title_identifier = $params->{title_identifier}; > my $terminal_password = $params->{terminal_password}; > my $item_properties = $params->{item_properties}; >- my $fee_acknowledged = $params->{fee_acknowledged}; >+ my $fee_acknowledged = $params->{fee_acknowledged} || 'N'; > >- $third_party_allowed = $third_party_allowed ? 'Y' : 'N'; >- $no_block = $no_block ? 'Y' : 'N'; >- $fee_acknowledged = $fee_acknowledged ? 'Y' : 'N'; >+ $third_party_allowed = $third_party_allowed eq 'Y' ? 'Y' : 'N'; >+ $no_block = $no_block eq 'Y' ? 'Y' : 'N'; >+ $fee_acknowledged = $fee_acknowledged eq 'Y' ? 'Y' : 'N'; > > $nb_due_date ||= $transaction_date; > >-- >1.7.2.5
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 13159
:
32901
|
32917
|
32923
|
32924
|
32965
|
32966
|
33648
|
33910
|
33912
|
35039
|
35163
|
35457
|
35666
|
36143
|
36293
|
36294
|
36419
|
36420
|
36421
|
36422
|
36423
|
36426
|
37547