Bugzilla – Attachment 125255 Details for
Bug 29056
Remove demo functionality remnants
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29056: Remove the demo functionality leftovers
Bug-29056-Remove-the-demo-functionality-leftovers.patch (text/plain), 1.93 KB, created by
Martin Renvoize (ashimema)
on 2021-09-24 14:57:43 UTC
(
hide
)
Description:
Bug 29056: Remove the demo functionality leftovers
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-09-24 14:57:43 UTC
Size:
1.93 KB
patch
obsolete
>From b5f807a0a0e8a886921dad977b8198cc165c567e Mon Sep 17 00:00:00 2001 >From: Petro Vashchuk <stalkernoid@gmail.com> >Date: Mon, 20 Sep 2021 12:36:02 +0300 >Subject: [PATCH] Bug 29056: Remove the demo functionality leftovers > >Remove forgotten code of the old legacy demo functionality that was >removed from elsewhere except systempreferences, this code not only >serves no purpose but also is causing some troubles for our customers. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > svc/config/systempreferences | 18 +++++++----------- > 1 file changed, 7 insertions(+), 11 deletions(-) > >diff --git a/svc/config/systempreferences b/svc/config/systempreferences >index c54e7499c45..acaf3e485f9 100755 >--- a/svc/config/systempreferences >+++ b/svc/config/systempreferences >@@ -64,10 +64,8 @@ Used to set a single system preference. > sub set_preference { > my ( $preference ) = @_; > >- unless ( C4::Context->config('demo') ) { >- my $value = join( ',', $query->param( 'value' ) ); >- C4::Context->set_preference( $preference, $value ); >- } >+ my $value = join( ',', $query->param( 'value' ) ); >+ C4::Context->set_preference( $preference, $value ); > > C4::Service->return_success( $response ); > } >@@ -95,16 +93,14 @@ pref_virtualshelves=0 > =cut > > sub set_preferences { >- unless ( C4::Context->config( 'demo' ) ) { >- foreach my $param ( $query->param() ) { >- my ( $pref ) = ( $param =~ /pref_(.*)/ ); >+ foreach my $param ( $query->param() ) { >+ my ( $pref ) = ( $param =~ /pref_(.*)/ ); > >- next if ( !defined( $pref ) ); >+ next if ( !defined( $pref ) ); > >- my $value = join( ',', $query->multi_param( $param ) ); >+ my $value = join( ',', $query->multi_param( $param ) ); > >- C4::Context->set_preference( $pref, $value ); >- } >+ C4::Context->set_preference( $pref, $value ); > } > > C4::Service->return_success( $response ); >-- >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 29056
:
125051
|
125255
|
125305