Bugzilla – Attachment 53158 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]
[SIGNED-OFF] Bug 16857 - patron-attr-types.tt: Get rid of warnings "Argument "" isn't numeric"
Bug-16857---patron-attr-typestt-Get-rid-of-warning.patch (text/plain), 1.68 KB, created by
Srdjan Jankovic
on 2016-07-07 03:27:39 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 16857 - patron-attr-types.tt: Get rid of warnings "Argument "" isn't numeric"
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2016-07-07 03:27:39 UTC
Size:
1.68 KB
patch
obsolete
>From 56c12babbbc94be2e19129616a07f88869e35ccd Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Mon, 4 Jul 2016 11:37:33 +0200 >Subject: [PATCH] Bug 16857 - patron-attr-types.tt: Get rid of warnings > "Argument "" isn't numeric" > >To vrify: >- Go to Home > Administration > Patron attribute types >- Make sure you have some patron attribute types with no branches limitation >- For each attribute type you get a warning in intranet-error.log: >patron-attr-types.pl: Argument "" isn't numeric in numeric gt (>) at (...)/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt line 284. > >To test: >- Appy patch >- Verify that warnings no longer appear in intranet-error.log > >Signed-off-by: Srdjan <srdjan@catalyst.net.nz> >--- > 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 3ee2fc5..580f38d 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 > 0 %] >+ [% IF ( item.branches.size && item.branches.size > 0 ) %] > [% branches_str = "" %] > [% FOREACH branch IN item.branches %] > [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %] >-- >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 16857
:
53123
|
53158
|
53181
|
53182