From: Bernd Bleßmann Date: Wed, 23 Sep 2020 09:13:21 +0000 (+0200) Subject: Auftrags-Controller: Beleg neu Laden nach Mail X-Git-Tag: release-3.5.6.1~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=54cadc0bfed7183c19b160a4320cf04fda1e955b;p=kivitendo-erp.git Auftrags-Controller: Beleg neu Laden nach Mail Damit sind auch die verknüpften Belege, in denen die Mail verlinkt ist, aktualisiert. --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index b9d940a7c..bf0915b7e 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -468,11 +468,15 @@ sub action_send_email { $self->order->update_attributes(intnotes => $intnotes); - $self->js - ->val('#order_intnotes', $intnotes) - ->run('kivi.Order.close_email_dialog') - ->flash('info', t8('The email has been sent.')) - ->render($self); + flash_later('info', t8('The email has been sent.')); + + my @redirect_params = ( + action => 'edit', + type => $self->type, + id => $self->order->id, + ); + + $self->redirect_to(@redirect_params); } # open the periodic invoices config dialog