Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c6c87726

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID c6c877266db02ffaf6d9448d180286954b865b4e
  • Vorgänger 1f0a135c
  • Nachfolger 0ccbeedc

Wandlung Pflichtenheft -> Angebot/Auftrag: HTML in Langtext ermöglichen

Unterschiede anzeigen:

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 = '&lt;%description%&gt;'   unless $longdescription =~ m{&lt;%};
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{\&lt;\% description \%\&gt;}{!!!!DESCRIPTION!!!!}gx;
263
    $longdescription =~ s{<[pP]> !!!!DESCRIPTION!!!! </[pP]>}{!!!!DESCRIPTION!!!!}gx;
264
    $longdescription =~ s{\&lt;\% (.+?) \%\&gt;}{ $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