Bugzilla – Attachment 91326 Details for
Bug 23057
If checked_in_ok is set and item is not checked out, alert flag is supressed for *any* reason
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23057: (QA follow-up) Stay closer to old code
Bug-23057-QA-follow-up-Stay-closer-to-old-code.patch (text/plain), 1.83 KB, created by
Marcel de Rooy
on 2019-07-05 08:43:39 UTC
(
hide
)
Description:
Bug 23057: (QA follow-up) Stay closer to old code
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-07-05 08:43:39 UTC
Size:
1.83 KB
patch
obsolete
>From a2e1d45c86b9511fce69a9f9563016a0a2aa86fa Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 5 Jul 2019 08:10:59 +0000 >Subject: [PATCH] Bug 23057: (QA follow-up) Stay closer to old code >Content-Type: text/plain; charset=utf-8 > >Somehow it feels safer to me to alert for a !$return directly after >calling AddReturn. And restore the old code for alert_type at the end. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/SIP/ILS/Transaction/Checkin.pm | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > >diff --git a/C4/SIP/ILS/Transaction/Checkin.pm b/C4/SIP/ILS/Transaction/Checkin.pm >index f0e8bbdf49..047837d4b7 100644 >--- a/C4/SIP/ILS/Transaction/Checkin.pm >+++ b/C4/SIP/ILS/Transaction/Checkin.pm >@@ -74,7 +74,13 @@ sub do_checkin { > if ( $checked_in_ok ) { > delete $messages->{NotIssued}; > delete $messages->{LocalUse}; >- $return = 1 unless keys %$messages; >+ if( keys %$messages ) { >+ $self->alert(!$return); >+ } else { >+ $return = 1; >+ } >+ } else { >+ $self->alert(!$return); > } > > # biblionumber, biblioitemnumber, itemnumber >@@ -130,11 +136,11 @@ sub do_checkin { > } > # ignoring messages: NotIssued, WasTransfered > >- if ($cv_triggers_alert) { >- $self->alert( defined $self->alert_type ); # Overwrites existing alert value, should set to 0 if there is no alert type >- } >- else { >- $self->alert( !$return || defined $self->alert_type ); >+ my $alert = defined $self->alert_type; >+ if ( $cv_triggers_alert ) { >+ $self->alert($alert); # Overwrites existing alert value, should set to 0 if there is no alert type >+ } else { >+ $self->alert($alert) if $alert; # Doesn't affect alert value unless an alert type is set > } > > $self->ok($return); >-- >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 23057
:
90344
|
90377
|
90384
|
90385
|
90388
|
90479
|
90480
|
90505
|
90506
|
90507
|
90508
|
91322
|
91323
|
91324
|
91325
|
91326
|
91644