Bugzilla – Attachment 83344 Details for
Bug 21956
Sysprefs not reset by regressions.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21956: (bug 21775 follow-up) Use set_preference to reset the value
Bug-21956-bug-21775-follow-up-Use-setpreference-to.patch (text/plain), 1.16 KB, created by
Martin Renvoize (ashimema)
on 2018-12-18 11:50:33 UTC
(
hide
)
Description:
Bug 21956: (bug 21775 follow-up) Use set_preference to reset the value
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-12-18 11:50:33 UTC
Size:
1.16 KB
patch
obsolete
>From 0713e371ee178cb6fab8cc77968b9c988abeb97d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 5 Dec 2018 16:23:24 -0300 >Subject: [PATCH] Bug 21956: (bug 21775 follow-up) Use set_preference to reset > the value > >Test plan: >Set AudioAlerts to 0 >Prove t/db_dependent/selenium/regressions.t >=> Without this patch the value of the pref is not reset to 0 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/selenium/regressions.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t >index 84c6d62ccd..4e8c9d7423 100644 >--- a/t/db_dependent/selenium/regressions.t >+++ b/t/db_dependent/selenium/regressions.t >@@ -185,8 +185,8 @@ subtest 'Display circulation table correctly' => sub { > }; > > END { >- C4::Context->preference('SearchEngine', $SearchEngine_value); >- C4::Context->preference('AudioAlerts', $AudioAlerts_value); >+ C4::Context->set_preference('SearchEngine', $SearchEngine_value); >+ C4::Context->set_preference('AudioAlerts', $AudioAlerts_value); > $_->delete for @cleanup; > }; > >-- >2.19.2
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 21956
:
82889
| 83344