Revision 40df0193
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
SL/Controller/Project.pm | ||
---|---|---|
120 | 120 |
|
121 | 121 |
$::form->{sort_by} = 'customer_and_description'; |
122 | 122 |
|
123 |
my $description_style = ($::form->{description_style} =~ m{both|number|description|full}) |
|
124 |
? $::form->{description_style} |
|
125 |
: 'full'; |
|
126 |
|
|
123 | 127 |
my @hashes = map { |
124 | 128 |
+{ |
125 |
value => $_->full_description(style => 'full'),
|
|
126 |
label => $_->full_description(style => 'full'),
|
|
129 |
value => $_->full_description(style => $description_style),
|
|
130 |
label => $_->full_description(style => $description_style),
|
|
127 | 131 |
id => $_->id, |
128 | 132 |
projectnumber => $_->projectnumber, |
129 | 133 |
description => $_->description, |
Auch abrufbar als: Unified diff
Projekt-Picker: Stil der Beschreibung angeben können
dem Picker kann mit "description_style" mitgegeben werden, wie die
Ergebnisse angezeigt werden. Mögliche Werte: "both", "number",
"description" und "full" (in SL::DB::Project->full_description)
definiert).