Skip to content

Commit 6f3d730

Browse files
committed
Ticket: #fix form validate redirection and return icon to keep projet_id context - refs BT#22464
1 parent ed06cdb commit 6f3d730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/ticket/new_ticket.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ function save_ticket()
247247
$exercise_id,
248248
$lp_id
249249
)) {
250-
header('Location:'.api_get_path(WEB_CODE_PATH).'ticket/tickets.php');
250+
header('Location:'.api_get_path(WEB_CODE_PATH).'ticket/tickets.php?project_id='.$project_id);
251251
exit;
252252
} else {
253253
Display::addFlash(Display::return_message(get_lang('ThereWasAnErrorRegisteringTheTicket')));
254254
}
255255
}
256256

257257
$interbreadcrumb[] = [
258-
'url' => api_get_path(WEB_CODE_PATH).'ticket/tickets.php',
258+
'url' => api_get_path(WEB_CODE_PATH).'ticket/tickets.php?project_id='.$projectId,
259259
'name' => get_lang('MyTickets'),
260260
];
261261

@@ -525,7 +525,7 @@ function save_ticket()
525525
echo '<div class="actions">';
526526
echo Display::url(
527527
Display::return_icon('back.png', get_lang('Tickets'), [], ICON_SIZE_MEDIUM),
528-
api_get_path(WEB_CODE_PATH).'ticket/tickets.php'
528+
api_get_path(WEB_CODE_PATH).'ticket/tickets.php?project_id='.$projectId
529529
);
530530
echo '</div>';
531531

0 commit comments

Comments
 (0)