diff options
author | Marc Delisle <marc@infomarc.info> | 2012-11-19 22:00:59 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-11-19 22:00:59 +0400 |
commit | a1fdfe1a033c194aca35efd0cc88bb24d8ef3c19 (patch) | |
tree | 26720f4300e167340b14de9dd69650cbb8170a4d /tbl_replace.php | |
parent | 2e9738379deba1b9cea718c635de019d3f28cc8f (diff) |
Bug #3583313 Selecting an action to do after inserting a row does nothing
Diffstat (limited to 'tbl_replace.php')
-rw-r--r-- | tbl_replace.php | 8 |
1 files changed, 7 insertions, 1 deletions
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 |