From 9b4b36e6ffaabbd5c955042fc0feb90c81e2ef21 Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 11 Feb 2013 16:42:56 +1100 Subject: [PATCH] Bug 9586 - Remove $ENV{DEBUG} info from Member Template Currently, if $ENV{DEBUG} is set (for example to 1), the debug level will be printed on the Add/Edit Patron pages (memberentrygen.tt) in the form of: "Debug is on (level 1)". While many if not most folks might not set $ENV{DEBUG} on a production system, there is no reason to have this information printing on the member template(s). No where else in Koha is there a template that prints $ENV{DEBUG} information, with the exception of calendar.inc, although that doesn't activate until at least debug level 2 or 5, so it might be worth holding on to. It is certainly more complicated than simply printing the debug level. I don't do development on the calendars, so I'm not going to address that one. Signed-off-by: Kyle M Hall Signed-off-by: Elliott Davis Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 5 ----- members/memberentry.pl | 1 - 2 files changed, 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 26d162faab..c505a04728 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -151,11 +151,6 @@ [% END %] - [% IF ( debug ) %] -
-
Debug is on (level [% debug %])
-
- [% END %] [% IF ( nok ) %]

The following fields are wrong. Please fix them.

diff --git a/members/memberentry.pl b/members/memberentry.pl index e46a560de1..5859bee9a4 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -698,7 +698,6 @@ $debug and warn "memberentry step: $step"; $template->param(%data); $template->param( "step_$step" => 1) if $step; # associate with step to know where u are $template->param( step => $step ) if $step; # associate with step to know where u are -$template->param( debug => $debug ) if $debug; $template->param( BorrowerMandatoryField => C4::Context->preference("BorrowerMandatoryField"),#field to test with javascript -- 2.39.5