Lines 208-213
sub add_form {
Link Here
|
208 |
$letters{ $lang }{templates}{$mtt} = { |
208 |
$letters{ $lang }{templates}{$mtt} = { |
209 |
message_transport_type => $letter->{message_transport_type}, |
209 |
message_transport_type => $letter->{message_transport_type}, |
210 |
is_html => $letter->{is_html}, |
210 |
is_html => $letter->{is_html}, |
|
|
211 |
updated_on => $letter->{updated_on}, |
211 |
title => $letter->{title}, |
212 |
title => $letter->{title}, |
212 |
content => $letter->{content} // '', |
213 |
content => $letter->{content} // '', |
213 |
}; |
214 |
}; |
Lines 368-374
sub retrieve_letters {
Link Here
|
368 |
|
369 |
|
369 |
my $dbh = C4::Context->dbh; |
370 |
my $dbh = C4::Context->dbh; |
370 |
my ($sql, @where, @args); |
371 |
my ($sql, @where, @args); |
371 |
$sql = "SELECT branchcode, module, code, name, branchname |
372 |
$sql = "SELECT branchcode, module, code, name, branchname, MAX(updated_on) as updated_on |
372 |
FROM letter |
373 |
FROM letter |
373 |
LEFT OUTER JOIN branches USING (branchcode) |
374 |
LEFT OUTER JOIN branches USING (branchcode) |
374 |
"; |
375 |
"; |
375 |
- |
|
|