]> git.joonet.de Git - adminer.git/commitdiff
Fix continue edit in Editor
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Tue, 6 Apr 2010 20:36:09 +0000 (20:36 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Tue, 6 Apr 2010 20:36:09 +0000 (20:36 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1383 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/edit.inc.php

index 0b6b3fbc6815a604c47cf4b0501b3ac7f26a66d6..8864cc29f2a977eda32fbdd17e8d534c97275283 100644 (file)
@@ -11,7 +11,7 @@ foreach ($fields as $name => $field) {
 if ($_POST && !$error && !isset($_GET["select"])) {
        $location = $_POST["referer"];
        if ($_POST["insert"]) { // continue edit or insert
-               $location = ($update ? ME . "&edit=" . urlencode($TABLE) . unique_idf($_POST["fields"], indexes($TABLE)) : $_SERVER["REQUEST_URI"]); //! doesn't work with functions
+               $location = ($update ? ME . "&edit=" . urlencode($TABLE) . unique_idf($_POST["fields"] + (array) $_GET["where"], indexes($TABLE)) : $_SERVER["REQUEST_URI"]); //! doesn't work with functions
        } elseif (!ereg('^.+&select=.+$', $location)) {
                $location = ME . "select=" . urlencode($TABLE);
                $i = 0; // append &set converted to &where