Bugzilla – Attachment 4949 Details for
Bug 6696
New category button broken when no categories defined
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
0001-Fix-for-Bug-6696-New-category-button-broken-when-no-.patch (text/plain), 1.65 KB, created by
Owen Leonard
on 2011-08-10 15:47:58 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2011-08-10 15:47:58 UTC
Size:
1.65 KB
patch
obsolete
>From 7a9efb7181bcfbfbe6707779f8658ce2c10dcf6a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 10 Aug 2011 11:44:37 -0400 >Subject: [PATCH] Fix for Bug 6696, New category button broken when no categories defined >Content-Type: text/plain; charset="utf-8" > >The javascript tablesorter will trigger an error if we try >to apply it to a table with no <tbody>. That error prevented >the YUI button script to complete properly, hence the broken >button. > >This patch hides the table in cases where there are no >categories and displays an error message instead. >--- > .../prog/en/modules/admin/categorie.tt | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >index c2e5062..b05a738 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >@@ -265,6 +265,7 @@ Confirm Deletion of Category [% categorycode |html %][% END %]</legend> > [% IF ( searchfield ) %] > You Searched for [% searchfield %]</span> > [% END %] >+[% IF ( loop ) %] > <span id="pagertable_categorie" class="pager"> > <form class="formpager"> <strong>page(s)</strong> : > <img src="[% interface %]/prog/img/first.png" class="first"/> >@@ -356,6 +357,9 @@ Confirm Deletion of Category [% categorycode |html %][% END %]</legend> > </tr> > [% END %] > </table> >+[% ELSE %] >+ <div class="dialog alert">No categories have been defined. <a href="/cgi-bin/koha/admin/categorie.pl?op=add_form">Create a new category</a>.</div> >+[% END %] > [% END %] > > </div> >-- >1.7.3 >
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 6696
:
4923
|
4949
|
4971