Bugzilla – Attachment 157613 Details for
Bug 15504
Track Patron's Last Activity
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15504: (follow-up) Respect existing TrackLastPatronActivity
Bug-15504-follow-up-Respect-existing-TrackLastPatr.patch (text/plain), 2.07 KB, created by
Andrii Nugged
on 2023-10-22 07:23:36 UTC
(
hide
)
Description:
Bug 15504: (follow-up) Respect existing TrackLastPatronActivity
Filename:
MIME Type:
Creator:
Andrii Nugged
Created:
2023-10-22 07:23:36 UTC
Size:
2.07 KB
patch
obsolete
>From ef1da550f59b71d13208deed95c2a41e7db28d07 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 11 Oct 2023 17:47:06 +0100 >Subject: [PATCH] Bug 15504: (follow-up) Respect existing > TrackLastPatronActivity > >This patch updates the database update to set >'check_out,connection,login' as the activity triggers should we find at >upgrade time that TrackLastPatronActivity is set to true. > >This retains the existing functionality. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../bug_15504-add-tracklastpatronactivityoptions.pl | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_15504-add-tracklastpatronactivityoptions.pl b/installer/data/mysql/atomicupdate/bug_15504-add-tracklastpatronactivityoptions.pl >index 537d824e91..b8daba1c6a 100755 >--- a/installer/data/mysql/atomicupdate/bug_15504-add-tracklastpatronactivityoptions.pl >+++ b/installer/data/mysql/atomicupdate/bug_15504-add-tracklastpatronactivityoptions.pl >@@ -7,8 +7,14 @@ return { > my ($args) = @_; > my ( $dbh, $out ) = @$args{qw(dbh out)}; > >+ # Get existing value from the TrackLastPatronActivity system preference >+ my ($tracklastactivity) = $dbh->selectrow_array( q| >+ SELECT value FROM systempreferences WHERE variable='TrackLastPatronActivity'; >+ |); >+ >+ my $triggers = $tracklastactivity ? 'check_out,connection,login' : ''; > $dbh->do( >- q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('TrackLastPatronActivityTriggers','',NULL,'If set, the field borrowers.lastseen will be updated every time a patron is does a selected option','multiple') } >+ qq{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('TrackLastPatronActivityTriggers',$triggers,NULL,'If set, the field borrowers.lastseen will be updated every time a patron is does a selected option','multiple') } > ); > > say $out "Added system preference 'TrackLastPatronActivityTriggers'"; >-- >2.42.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 15504
:
152332
|
152333
|
152334
|
152335
|
152336
|
152500
|
152501
|
152502
|
152503
|
152504
|
152505
|
152506
|
155290
|
155291
|
155292
|
155293
|
155294
|
155295
|
155296
|
155534
|
155535
|
155536
|
155537
|
155538
|
155539
|
155540
|
156598
|
156599
|
156600
|
156601
|
156602
|
156603
|
156604
|
156605
|
156606
|
156607
|
156608
|
156742
|
156855
|
156856
|
156857
|
156858
|
156859
|
156860
|
156861
|
156862
|
156863
|
156864
|
156865
|
156866
|
156867
|
156868
|
156869
|
156870
|
156875
|
156879
|
156898
|
156899
|
156900
|
156901
|
156902
|
156903
|
156904
|
156905
|
156906
|
156907
|
156908
|
156909
|
156910
|
156911
|
156912
|
156913
|
156914
|
156915
|
156917
|
156918
|
156919
|
156920
|
156921
|
156922
|
156923
|
156924
|
156925
|
156926
|
156927
|
156928
|
156929
|
156930
|
156931
|
156932
|
156933
|
156934
|
156935
|
157602
|
157603
|
157604
|
157605
|
157606
|
157607
|
157608
|
157609
|
157610
|
157611
|
157612
| 157613 |
157614
|
157615
|
157616
|
157617
|
157618
|
157619
|
157620
|
157624