Bugzilla – Attachment 53182 Details for
Bug 16857
patron-attr-types.tt: Get rid of warnings "Argument "" isn't numeric"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16857: Check on item.branches makes more sense
Bug-16857-Check-on-itembranches-makes-more-sense.patch (text/plain), 1.34 KB, created by
Jonathan Druart
on 2016-07-07 15:43:07 UTC
(
hide
)
Description:
Bug 16857: Check on item.branches makes more sense
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-07-07 15:43:07 UTC
Size:
1.34 KB
patch
obsolete
>From 87613c4d997be05cf1b5e84b34c474e03d7fb1c2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 7 Jul 2016 16:40:47 +0100 >Subject: [PATCH] Bug 16857: Check on item.branches makes more sense > >The test should be on the existence of the item.branches >method/attribute > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >index 580f38d..8b0c880 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >@@ -267,7 +267,7 @@ $(document).ready(function() { > <td>[% item.code |html %]</td> > <td>[% item.description %]</td> > <td> >- [% IF ( item.branches.size && item.branches.size > 0 ) %] >+ [% IF ( item.branches && item.branches.size > 0 ) %] > [% branches_str = "" %] > [% FOREACH branch IN item.branches %] > [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %] >-- >2.8.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 16857
:
53123
|
53158
|
53181
| 53182