From 96aa70a1194b80a97b82ab8479fec86cd6074d13 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Mon, 5 Aug 2013 13:28:29 +0200 Subject: [PATCH] Meldungen beim Erstellen von Wiedervorlagen im Kunden/Lieferanten --- SL/Controller/CustomerVendor.pm | 7 +++++++ 1 file changed, 7 insertions(+) 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(); } -- 2.20.1