Revision 1d327692
Von Sven Schöling vor etwa 8 Jahren hinzugefügt
SL/DN.pm | ||
---|---|---|
475 | 475 |
# prepare meta information for template introspection |
476 | 476 |
$form->{template_meta} = { |
477 | 477 |
formname => $form->{formname}, |
478 |
language => SL::DB::Manager::Language->find_by_or_create(id => $form->{language_id}), |
|
478 |
language => SL::DB::Manager::Language->find_by_or_create(id => $form->{language_id} || undef),
|
|
479 | 479 |
format => $form->{format}, |
480 | 480 |
media => $form->{media}, |
481 | 481 |
extension => $extension, |
482 |
printer => SL::DB::Manager::Printer->find_by_or_create(id => $form->{printer_id}), |
|
482 |
printer => SL::DB::Manager::Printer->find_by_or_create(id => $form->{printer_id} || undef),
|
|
483 | 483 |
today => DateTime->today, |
484 | 484 |
}; |
485 | 485 |
|
Auch abrufbar als: Unified diff
DN: niemals leere Strings als ids verwenden