Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2012-11-19 22:00:59 +0400
committerMarc Delisle <marc@infomarc.info>2012-11-19 22:00:59 +0400
commita1fdfe1a033c194aca35efd0cc88bb24d8ef3c19 (patch)
tree26720f4300e167340b14de9dd69650cbb8170a4d /tbl_replace.php
parent2e9738379deba1b9cea718c635de019d3f28cc8f (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.php8
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