Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fac8417d

Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt

  • ID fac8417d136f89b1ce0fed8c2ef35ee089228ac7
  • Vorgänger d41efcfe
  • Nachfolger e943a04e

Project-Picker basierend auf Part-Picker

Unterschiede anzeigen:

SL/DB/Project.pm
60 60
  } elsif ($params{style} =~ m/description/) {
61 61
    $description = $self->description;
62 62

  
63
  } elsif ($params{style} =~ m/full/) {
64
    $description = $self->projectnumber;
65
    if ($self->description && do { my $desc = quotemeta $self->description; $self->projectnumber !~ m/$desc/ }) {
66
      $description .= ' ' . $self->description;
67
    }
68

  
69
    $description = $self->customer->name . " (${description})";
70

  
63 71
  } else {
64 72
    $description = $self->projectnumber;
65 73
    if ($self->description && do { my $desc = quotemeta $self->description; $self->projectnumber !~ m/$desc/ }) {
......
128 136

  
129 137
Returns only the project's description.
130 138

  
139
=item C<full>
140

  
141
Returns the customer name followed by the project number and project
142
description in parenthesis (e.g. "Evil Corp (12345 World
143
domination)"). If the project's description is already part of the
144
project's number then it will not be appended.
145

  
131 146
=back
132 147

  
133 148
=back

Auch abrufbar als: Unified diff