Bugzilla – Attachment 53865 Details for
Bug 7520
JSON script to return advanced search types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug_7520 Added helper "syspref" to Mojolicious handlers
bug7520-Added-helper-syspref-to-Mojolicious-handle.patch (text/plain), 658 bytes, created by
Srdjan Jankovic
on 2016-08-02 01:43:46 UTC
(
hide
)
Description:
bug_7520 Added helper "syspref" to Mojolicious handlers
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2016-08-02 01:43:46 UTC
Size:
658 bytes
patch
obsolete
>From 09ad915311607ef4974d038d42a46086a2872b0f Mon Sep 17 00:00:00 2001 >From: Srdjan <srdjan@catalyst.net.nz> >Date: Tue, 2 Aug 2016 13:37:56 +1200 >Subject: [PATCH] bug_7520 Added helper "syspref" to Mojolicious handlers > >--- > Koha/REST/V1.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm >index b692a38..b8f2bd6 100644 >--- a/Koha/REST/V1.pm >+++ b/Koha/REST/V1.pm >@@ -25,6 +25,8 @@ use Koha::Patrons; > sub startup { > my $self = shift; > >+ $self->helper(syspref => sub { C4::Context->preference($_[1]) }); >+ > my $route = $self->routes->under->to( > cb => sub { > my $c = shift; >-- >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 7520
:
7556
|
7605
|
7606
|
7611
|
7613
|
53865
|
53867
|
60538
|
60539