From e2d40b7810b6b06af8f87be2dfd38c55c153bc90 Mon Sep 17 00:00:00 2001
From: Roland Becker <roland@atrol.de>
Date: Tue, 25 Aug 2020 21:48:18 +0200
Subject: [PATCH] Redirect to note after adding a note

---
 bugnote_add.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bugnote_add.php b/bugnote_add.php
index 39b5d5248..25622535f 100644
--- a/bugnote_add.php
+++ b/bugnote_add.php
@@ -61,8 +61,9 @@ $t_data = array(
 );
 
 $t_command = new IssueNoteAddCommand( $t_data );
-$t_command->execute();
+$t_result = $t_command->execute();
+$t_bugnote_id = $t_result['id'];
 
 form_security_purge( 'bugnote_add' );
 
-print_successful_redirect_to_bug( $f_bug_id );
+print_successful_redirect( string_get_bugnote_view_url( $f_bug_id, $t_bugnote_id ) );
-- 
2.28.0

