Revision 4d050ca3
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpecOrder.pm | ||
---|---|---|
242 | 242 |
my $longdescription = $translation->{longdescription} || $part->notes; |
243 | 243 |
|
244 | 244 |
if (!$section->{keep_description}) { |
245 |
$description = '<%fb_number%> <%title%>' unless $description =~ m{<%}; |
|
246 |
$longdescription = '<%description%>' unless $longdescription =~ m{<%}; |
|
247 |
|
|
245 | 248 |
foreach my $field (\$description, \$longdescription) { |
246 |
$$field = '<%fb_number%> <%title%>' unless $$field =~ m{<%}; |
|
247 | 249 |
$$field =~ s{<% (.+?) %>}{ $section->can($1) ? $section->$1 : '<' . t8('Invalid variable #1', $1) . '>' }egx; |
248 | 250 |
} |
249 | 251 |
} |
Auch abrufbar als: Unified diff
Pflichtenheft -> Angebot: Langtext per Default aus Abschnittsbeschreibung setzen