message_queue => $message_queue,
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
borrowernumber => $borrowernumber,
- branchcode => $borrower->{'branchcode'},
branchname => GetBranchName($borrower->{'branchcode'}),
dateformat => C4::Context->preference("dateformat"),
categoryname => $borrower->{'description'},
#$messaging_preferences->{'SMSnumber'}{'value'} = defined $borrower->{'smsalertnumber'}
# ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'};
-$template->param( BORROWER_INFO => [ $borrower ],
+$template->param( %{ $borrower } );
+$template->param(
messagingview => 1,
is_child => ($borrower->{'category_type'} eq 'C'),
);
# Getting the messages
my $queued_messages = C4::Letters::GetQueuedMessages({borrowernumber => $borrowernumber});
+$template->param( %{$borrower} );
$template->param(
QUEUED_MESSAGES => $queued_messages,
- BORROWER_INFO => [ $borrower ],
- firstname => $borrower->{'firstname'},
- surname => $borrower->{'surname'},
borrowernumber => $borrowernumber,
sentnotices => 1
);
output_html_with_http_headers $input, $cookie, $template->output;
-
-