X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5b5dbec0272c91697acf33c4842ee9d63f041f22..3b01b816f1c52e187babf1988d7e7d765fe18299:/SL/Presenter/Project.pm
diff --git a/SL/Presenter/Project.pm b/SL/Presenter/Project.pm
index 650995c7f..b8d20a0b3 100644
--- a/SL/Presenter/Project.pm
+++ b/SL/Presenter/Project.pm
@@ -18,24 +18,11 @@ sub project {
croak "Unknown display type '$params{display}'" unless $params{display} =~ m/^(?:inline|table-cell)$/;
- $params{style} ||= 'both';
- my $description;
-
- if ($params{style} =~ m/number/) {
- $description = $project->projectnumber;
-
- } elsif ($params{style} =~ m/description/) {
- $description = $project->description;
-
- } else {
- $description = $project->projectnumber;
- if ($project->description && do { my $desc = quotemeta $project->description; $project->projectnumber !~ m/$desc/ }) {
- $description .= ' (' . $project->description . ')';
- }
- }
+ my $description = $project->full_description(style => $params{style});
+ my $callback = $params{callback} ? '&callback=' . $::form->escape($params{callback}) : '';
my $text = join '', (
- $params{no_link} ? '' : '',
+ $params{no_link} ? '' : '',
$self->escape($description),
$params{no_link} ? '' : '',
);