]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Pflichtenheft -> Angebot: ungültige Attribute nicht ausführen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 15 Jul 2013 15:35:27 +0000 (17:35 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 1 Apr 2014 11:09:06 +0000 (13:09 +0200)
SL/Controller/RequirementSpecOrder.pm
locale/de/all

index d54a173c3b462189a08dfc4014462577c522e4e7..fc0fbea41924dd4ef822d205bc35c3b4c0b2626d 100644 (file)
@@ -241,7 +241,7 @@ sub create_order_item {
 
   if (!$section->{keep_description}) {
     $description =  '<%fb_number%> <%title%>' unless $description =~ m{<%};
-    $description =~ s{<% (.+?) %>}{$section->$1}egx;
+    $description =~ s{<% (.+?) %>}{ $section->can($1) ? $section->$1 : '<' . t8('Invalid variable #1', $1) . '>' }egx;
   }
 
   $item->assign_attributes(
index e5e937ef2b32ad9b9c1a6a650d62a2437177dd14..215e4c119bd0ed6e5cf61c7669689e23497e4154 100755 (executable)
@@ -1235,6 +1235,7 @@ $self->{texts} = {
   'Invalid quantity.'           => 'Die Mengenangabe ist ung&uuml;ltig.',
   'Invalid request type \'#1\'' => 'Ungültiger Request-Typ \'#1\'',
   'Invalid transactions'        => 'Ungültige Buchungen',
+  'Invalid variable #1'         => 'Ungültige Variable #1',
   'Invdate'                     => 'Rechnungsdatum',
   'Invdate from'                => 'Rechnungen von',
   'Inventory'                   => 'Inventar',