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