Bugzilla – Attachment 64965 Details for
Bug 16306
C4::Context->setCommandlineEnvironment() convenience function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16306 - (squashable) C4::Context->setCommandlineEnvironment() convenience function
Bug-16306---squashable-C4Context-setCommandlineEnv.patch (text/plain), 1.14 KB, created by
Lari Taskula
on 2017-07-10 14:01:37 UTC
(
hide
)
Description:
Bug 16306 - (squashable) C4::Context->setCommandlineEnvironment() convenience function
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2017-07-10 14:01:37 UTC
Size:
1.14 KB
patch
obsolete
>From 01c863f6dcdf3dd0ccf659cbd122b750f0b60565 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Mon, 10 Jul 2017 16:58:31 +0300 >Subject: [PATCH] Bug 16306 - (squashable) > C4::Context->setCommandlineEnvironment() convenience function > >Test t/db_dependent/Context_commandline.t fails due to commandlinesuperuser not >being stored in the database. > >To test: >1. Make sure commandlinesuperuser does not exist >2. prove t/db_dependent/Context_commandline.t >3. Observe failure >4. Apply patch >5. prove t/db_dependent/Context_commandline.t >6. Success >--- > C4/Context.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 1e9a1eb..c76ee59 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -1035,7 +1035,7 @@ sub _enforceCommandlineSuperuserBorrowerExists { > dateexpiry => '2099-12-31', > categorycode => $ctgr || 'NOCAT', > branchcode => $brnchcd, >- }); >+ })->store; > $commandlineSuperuser = Koha::Patrons->find({userid => 'commandlineadmin'}); > } > return $commandlineSuperuser; >-- >2.7.4
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 16306
:
50454
|
50501
| 64965