From 56053021d98abfd85a033a12d642714d821b8847 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 25 Sep 2015 08:35:42 +0200 Subject: [PATCH] =?utf8?q?Project::full=5Fdescription:=20style=3Dfull=20f?= =?utf8?q?=C3=BCr=20=C2=BBkein=20Kunde=20verkn=C3=BCpft=C2=AB=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Project.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SL/DB/Project.pm b/SL/DB/Project.pm index aa97f764e..40d1a844b 100644 --- a/SL/DB/Project.pm +++ b/SL/DB/Project.pm @@ -60,7 +60,7 @@ sub full_description { } elsif ($params{style} =~ m/description/) { $description = $self->description; - } elsif ($params{style} =~ m/full/) { + } elsif (($params{style} =~ m/full/) && $self->customer) { $description = $self->projectnumber; if ($self->description && do { my $desc = quotemeta $self->description; $self->projectnumber !~ m/$desc/ }) { $description .= ' ' . $self->description; @@ -143,6 +143,9 @@ description in parenthesis (e.g. "Evil Corp (12345 World domination)"). If the project's description is already part of the project's number then it will not be appended. +If this project isn't linked to a customer then the style C is +used instead. + =back =back -- 2.20.1