From: Thomas Heck Date: Mon, 5 Aug 2013 11:28:29 +0000 (+0200) Subject: Meldungen beim Erstellen von Wiedervorlagen im Kunden/Lieferanten X-Git-Tag: release-3.1.0beta1~104 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=96aa70a1194b80a97b82ab8479fec86cd6074d13;p=kivitendo-erp.git Meldungen beim Erstellen von Wiedervorlagen im Kunden/Lieferanten --- diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index 2fabe1433..6f253adf7 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -117,10 +117,17 @@ sub _save { } if( $self->{note}->subject ne '' && $self->{note}->body ne '' ) { + + if ( !$self->{note_followup}->follow_up_date ) { + $::form->error($::locale->text('Date missing!')); + } + $self->{note}->trans_id($self->{cv}->id); $self->{note}->save(); $self->{note_followup}->save(); + SL::Helper::Flash::flash_later('info', $::locale->text('Follow-Up saved.')); + $self->{note} = SL::DB::Note->new(); $self->{note_followup} = SL::DB::FollowUp->new(); }