View | Details | Raw Unified | Return to bug 6164
Collapse All | Expand All

(-)a/members/messaging.pl (-2 / +2 lines)
Lines 84-90 $template->param( messagingview => 1, Link Here
84
                  message_queue               => $message_queue,
84
                  message_queue               => $message_queue,
85
                  DHTMLcalendar_dateformat    => C4::Dates->DHTMLcalendar(), 
85
                  DHTMLcalendar_dateformat    => C4::Dates->DHTMLcalendar(), 
86
                  borrowernumber              => $borrowernumber,
86
                  borrowernumber              => $borrowernumber,
87
                  branchcode                  => $borrower->{'branchcode'},
88
                  branchname		      => GetBranchName($borrower->{'branchcode'}),
87
                  branchname		      => GetBranchName($borrower->{'branchcode'}),
89
                  dateformat                  => C4::Context->preference("dateformat"),
88
                  dateformat                  => C4::Context->preference("dateformat"),
90
                  categoryname                => $borrower->{'description'},
89
                  categoryname                => $borrower->{'description'},
Lines 94-100 $template->param( messagingview => 1, Link Here
94
#$messaging_preferences->{'SMSnumber'}{'value'} = defined $borrower->{'smsalertnumber'}
93
#$messaging_preferences->{'SMSnumber'}{'value'} = defined $borrower->{'smsalertnumber'}
95
#  ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'};
94
#  ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'};
96
95
97
$template->param( BORROWER_INFO         => [ $borrower ],
96
$template->param( %{ $borrower } );
97
$template->param(
98
                  messagingview         => 1,
98
                  messagingview         => 1,
99
				  is_child        => ($borrower->{'category_type'} eq 'C'),
99
				  is_child        => ($borrower->{'category_type'} eq 'C'),
100
                );
100
                );
(-)a/members/notices.pl (-6 / +1 lines)
Lines 51-66 $template->param( picture => 1 ) if $picture; Link Here
51
51
52
# Getting the messages
52
# Getting the messages
53
my $queued_messages = C4::Letters::GetQueuedMessages({borrowernumber => $borrowernumber});
53
my $queued_messages = C4::Letters::GetQueuedMessages({borrowernumber => $borrowernumber});
54
$template->param( %{$borrower} );
54
55
55
$template->param(
56
$template->param(
56
			QUEUED_MESSAGES 	=> $queued_messages,
57
			QUEUED_MESSAGES 	=> $queued_messages,
57
 			BORROWER_INFO         	=> [ $borrower ],
58
                        firstname 		=> $borrower->{'firstname'},
59
			surname 		=> $borrower->{'surname'},
60
			borrowernumber 		=> $borrowernumber,
58
			borrowernumber 		=> $borrowernumber,
61
			sentnotices 		=> 1
59
			sentnotices 		=> 1
62
		);
60
		);
63
output_html_with_http_headers $input, $cookie, $template->output;
61
output_html_with_http_headers $input, $cookie, $template->output;
64
62
65
66
67
- 

Return to bug 6164