From c51316a5947795f0b410480daad734b205aeb371 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 25 Mar 2008 15:22:29 -0500 Subject: [PATCH] Correction to prevent js error when table has no data. Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 1 + .../prog/en/modules/admin/systempreferences.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 8d96e597bd..ba7f7dda11 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -320,6 +320,7 @@ sub get_template_and_user { OpacAuthorities => C4::Context->preference("OpacAuthorities"), OpacBrowser => C4::Context->preference("OpacBrowser"), RequestOnOpac => C4::Context->preference("RequestOnOpac"), + OPACItemHolds => C4::Context->preference("OPACItemHolds"), reviewson => C4::Context->preference("reviewson"), hide_marc => C4::Context->preference("hide_marc"), patronimages => C4::Context->preference("patronimages"), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl index c2623b4904..a2150befb6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl @@ -1,6 +1,6 @@ Koha › Administration › <!-- TMPL_IF name="add_form" --> System Preferences › <!-- TMPL_IF NAME="modify" -->Modify system preference '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->Add a system preference<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="add_validate" --> System Preferences › Data Added<!-- /TMPL_IF --> -<!-- TMPL_IF name="delete_confirm" --> <a href="">System Preferences › <!-- TMPL_VAR NAME="searchfield" --> › Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" --> System Preferences › Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->System Preferences<!-- /TMPL_IF --> + System Preferences › › Confirm Deletion of Parameter '' System Preferences › Parameter DeletedSystem Preferences