From 34925210cf782b0d8747301434a51f64b5291cac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Sun, 20 Aug 2017 13:14:19 +0200 Subject: [PATCH] =?utf8?q?Lieferschein=20erzeugen:=20name-Methode=20nicht?= =?utf8?q?=20auf=20undef.=20VC-Obkjekt=20ausf=C3=BChren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sonst gibt es einen Fehler, wenn es keine Kunden gibt oder für den Mandanten noch keine Verkaufslieferscheine vorhanden sind. Behebt #296 (redmine) --- bin/mozilla/do.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index d4b2f9e75..1a304e797 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -458,7 +458,7 @@ sub form_header { $::request->{layout}->add_javascripts_inline("\$(function(){$dispatch_to_popup});"); - $form->{follow_up_trans_info} = $form->{donumber} .'('. $form->{VC_OBJ}->name .')'; + $form->{follow_up_trans_info} = $form->{donumber} .'('. $form->{VC_OBJ}->name .')' if $form->{VC_OBJ}; $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.File kivi.MassDeliveryOrderPrint kivi.SalesPurchase kivi.Part ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer)); -- 2.20.1