Wrong email-adress field taken when emailing documents [0000035].
[fa-stable.git] / includes / ui / ui_input.inc
index 65ac068fd5acea5f2850e137973a53e05057a085..f1fb3691c1d6d45914a4b602ac49e6e0f0001e99 100644 (file)
@@ -53,7 +53,9 @@ function simple_page_mode($numeric_id = true)
        foreach (array('Edit', 'Delete') as $m) {
                foreach ($_POST as $p => $pvar) {
                        if (strpos($p, $m) === 0) {
-                               $selected_id = substr($p, strlen($m));
+//                             $selected_id = strtr(substr($p, strlen($m)), array('%2E'=>'.'));
+                               unset($_POST['_focus']); // focus on first form entry
+                               $selected_id = quoted_printable_decode(substr($p, strlen($m)));
                                $Ajax->activate('_page_body');
                                $Mode = $m;
                                return;