From b6ced3b773dbd8e67bd419b87bea31b588915720 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 15 Dec 2009 13:13:49 -0500 Subject: [PATCH] Fix for Bug 3926 (suggestion edit form combines data) Breaking patron information variable into separate surname, firstname, branch, category, and borrowernumber variables and using those variables to tweak the display. --- .../prog/en/modules/suggestion/suggestion.tmpl | 6 +++--- suggestion/suggestion.pl | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl index f29bfd80d8..058c631697 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl @@ -111,18 +111,18 @@ $(document).ready(function() { Suggestion creation "/> - "/> + "/>">, () Suggestion management " /> - "/> + "/>">, () Suggestion Accepted " /> - "/> + "/>">, () diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 85b3eb540b..36bdcbc8da 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -198,9 +198,14 @@ foreach my $element qw(managedby suggestedby){ $debug || warn $$suggestion_ref{$element}; if ($$suggestion_ref{$element}){ my $member=GetMember(borrowernumber=>$$suggestion_ref{$element}); - my $presentation_string=$$member{firstname}." ".$$member{surname}." ".GetBranchName($$member{branchcode})." ".$$member{description}." ".$$member{category_type}; - $debug || warn $presentation_string; - $template->param($element."information"=>$presentation_string); + $template->param( + $element."_borrowernumber"=>$$member{borrowernumber}, + $element."_firstname"=>$$member{firstname}, + $element."_surname"=>$$member{surname}, + $element."_branchcode"=>$$member{branchcode}, + $element."_description"=>$$member{description}, + $element."_category_type"=>$$member{category_type} + ); } } $template->param( -- 2.39.5