if (!$section->{keep_description}) {
$description = '<%fb_number%> <%title%>' unless $description =~ m{<%};
- $description =~ s{<% (.+?) %>}{$section->$1}egx;
+ $description =~ s{<% (.+?) %>}{ $section->can($1) ? $section->$1 : '<' . t8('Invalid variable #1', $1) . '>' }egx;
}
$item->assign_attributes(
'Invalid quantity.' => 'Die Mengenangabe ist ungültig.',
'Invalid request type \'#1\'' => 'Ungültiger Request-Typ \'#1\'',
'Invalid transactions' => 'Ungültige Buchungen',
+ 'Invalid variable #1' => 'Ungültige Variable #1',
'Invdate' => 'Rechnungsdatum',
'Invdate from' => 'Rechnungen von',
'Inventory' => 'Inventar',