Revision c6c87726
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpecOrder.pm | ||
---|---|---|
256 | 256 |
|
257 | 257 |
if (!$section->{keep_description}) { |
258 | 258 |
$description = '<%fb_number%> <%title%>' unless $description =~ m{<%}; |
259 |
$longdescription = '<%description%>' unless $longdescription =~ m{<%};
|
|
259 |
$longdescription = '<%description%>' unless $longdescription =~ m{<%};
|
|
260 | 260 |
|
261 |
foreach my $field (\$description, \$longdescription) { |
|
262 |
$$field =~ s{<% (.+?) %>}{ $section->can($1) ? $section->$1 : '<' . t8('Invalid variable #1', $1) . '>' }egx; |
|
263 |
} |
|
261 |
$description =~ s{<% (.+?) %>}{ $section->can($1) ? $section->$1 : '<' . t8('Invalid variable #1', $1) . '>' }egx; |
|
262 |
$longdescription =~ s{\<\% description \%\>}{!!!!DESCRIPTION!!!!}gx; |
|
263 |
$longdescription =~ s{<[pP]> !!!!DESCRIPTION!!!! </[pP]>}{!!!!DESCRIPTION!!!!}gx; |
|
264 |
$longdescription =~ s{\<\% (.+?) \%\>}{ $section->can($1) ? $::locale->quote_special_chars('HTML', $section->$1 // '') : '<' . t8('Invalid variable #1', $1) . '>' }egx; |
|
265 |
$longdescription =~ s{!!!!DESCRIPTION!!!!}{ $section->description // '' }egx; |
|
264 | 266 |
} |
265 | 267 |
|
266 | 268 |
$item->assign_attributes( |
Auch abrufbar als: Unified diff
Wandlung Pflichtenheft -> Angebot/Auftrag: HTML in Langtext ermöglichen