Lines 166-179
sub add_form {
Link Here
|
166 |
my $message_transport_types = GetMessageTransportTypes(); |
166 |
my $message_transport_types = GetMessageTransportTypes(); |
167 |
my @letter_loop; |
167 |
my @letter_loop; |
168 |
if ($letters) { |
168 |
if ($letters) { |
|
|
169 |
$template->param( |
170 |
modify => 1, |
171 |
code => $code, |
172 |
branchcode => $branchcode, |
173 |
); |
169 |
my $first_flag = 1; |
174 |
my $first_flag = 1; |
|
|
175 |
# The letter name is contained into each mtt row. |
176 |
# So we can only sent the first one to the template. |
170 |
for my $mtt ( @$message_transport_types ) { |
177 |
for my $mtt ( @$message_transport_types ) { |
|
|
178 |
# The letter_name |
171 |
if ( $first_flag ) { |
179 |
if ( $first_flag ) { |
172 |
$template->param( |
180 |
$template->param( |
173 |
modify => 1, |
181 |
letter_name=> $letters->{$mtt}{name}, |
174 |
code => $code, |
|
|
175 |
branchcode => $branchcode, |
176 |
name => $letters->{$mtt}{name}, |
177 |
); |
182 |
); |
178 |
$first_flag = 0; |
183 |
$first_flag = 0; |
179 |
} |
184 |
} |
180 |
- |
|
|