From a1fdfe1a033c194aca35efd0cc88bb24d8ef3c19 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 19 Nov 2012 13:00:59 -0500 Subject: [PATCH] Bug #3583313 Selecting an action to do after inserting a row does nothing --- tbl_replace.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tbl_replace.php b/tbl_replace.php index cb169b9a7f..240b12365a 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -280,7 +280,13 @@ unset( $last_messages, $last_message ); -if ($response->isAjax()) { +/** + * The following section only applies to grid editing. + * However, verifying isAjax() is not enough to ensure we are coming from + * grid editing. If we are coming from the Edit or Copy link in Browse mode, + * ajax_page_request is present in the POST parameters. + */ +if ($response->isAjax() && ! isset($_POST['ajax_page_request'])) { /** * If we are in grid editing, we need to process the relational and * transformed fields, if they were edited. After that, output the correct