From 54cadc0bfed7183c19b160a4320cf04fda1e955b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 23 Sep 2020 11:13:21 +0200 Subject: [PATCH] Auftrags-Controller: Beleg neu Laden nach Mail MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Damit sind auch die verknüpften Belege, in denen die Mail verlinkt ist, aktualisiert. --- SL/Controller/Order.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 -- 2.20.1