]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/RequirementSpecTextBlock.pm
Pflichtenhefttextblöcke: current_content_id leer richtig behandeln
[mfinanz.git] / SL / Controller / RequirementSpecTextBlock.pm
index eaf8b6fdcbf527f7c316c346d356507136acc8ee..931c27d59bf94ffd2697e83b61539b2b6bdba9de 100644 (file)
@@ -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;
 }