From c1d4bb641bd0dcf27fbd1e14004c19c28edc76e6 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 11 Aug 2009 17:43:02 +0100 Subject: [PATCH] Bug 3522 Refactor Create Update Delete letter for consistency and readability Fixed inconsistent usuage of primary key in delete Refactored: Moved operations to separate subroutines to clarify data flow Removed unnecessary redirects to self Renamed confusingly named else variable passed to template Other changes for code clarity NB Outstanding: database reading/writing should live in appropriate module not duplicate it here. Signed-off-by: Galen Charlton --- .../prog/en/modules/tools/letter.tmpl | 2 +- tools/letter.pl | 346 ++++++++++-------- 2 files changed, 203 insertions(+), 145 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl index cd0745606f..7dbb3ba11c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl @@ -114,7 +114,7 @@ $(document).ready(function() {
- +