From: Moritz Bunkus Date: Wed, 13 Mar 2013 14:45:04 +0000 (+0100) Subject: Pflichtenhefttextblöcke: current_content_id leer richtig behandeln X-Git-Tag: release-3.2.0beta~467^2~214 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=920773a21471e68264657155a26caec25d63c9f6;p=kivitendo-erp.git Pflichtenhefttextblöcke: current_content_id leer richtig behandeln --- diff --git a/SL/Controller/RequirementSpecTextBlock.pm b/SL/Controller/RequirementSpecTextBlock.pm index eaf8b6fdc..931c27d59 100644 --- a/SL/Controller/RequirementSpecTextBlock.pm +++ b/SL/Controller/RequirementSpecTextBlock.pm @@ -273,7 +273,7 @@ sub output_position_from_id { return undef if $type !~ m/text-block/; } - my $text_block = SL::DB::Manager::RequirementSpecTextBlock->find_by(id => $id); + my $text_block = $id ? SL::DB::Manager::RequirementSpecTextBlock->find_by(id => $id) : undef; return $text_block ? $text_block->output_position : undef; }