Cleanup bad code when altering schema
authorJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Fri, 16 Dec 2011 22:57:12 +0000 (23:57 +0100)
committerJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Thu, 29 Dec 2011 19:51:38 +0000 (20:51 +0100)
functions.php

index cd36715b2f7e1160fa11281d0809570bf229ec72..c1099eafc96ee7078c8c6ad9f879d475a8bc4a32 100644 (file)
@@ -41,8 +41,7 @@
                        // and reload the browser frame.
                        if (!empty($_POST['formFuncSchema']) && ($_POST['formFuncSchema'] != $_POST['original_schema'])) {
                                // Jump them to the new function schema
-                               $_REQUEST['schema'] = $_POST['formFuncSchema'];
-                               $misc->href = "server={$_REQUEST['server']}&amp;database={$_REQUEST['database']}&amp;schema={$_REQUEST['schema']}";
+                               $misc->setCurrentSchema($_POST['formFuncSchema']);
                                // Force a browser reload
                                $_reload_browser = true;
                         }