Bug 32682: Fix how sys pref is retrived in DB update
Signed-off-by: Trevor Diamond <trevor.diamond@mainlib.org> Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
2b89780db4
commit
48c9bdc86a
|
|
@ -17,7 +17,12 @@ return {
|
|||
|
||||
say $out "Added new permission 'view_checkout_history'";
|
||||
|
||||
my $IntranetBrowsingHistory = C4::Context->preference('intranetreadinghistory');
|
||||
my ($IntranetBrowsingHistory) = $dbh->selectrow_array(
|
||||
q|
|
||||
SELECT value FROM systempreferences WHERE variable='intranetreadinghistory'
|
||||
|
|
||||
);
|
||||
|
||||
if ($IntranetBrowsingHistory) {
|
||||
|
||||
my $insert_sth = $dbh->prepare(
|
||||
|
|
|
|||
Loading…
Reference in New Issue