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:
authorKasun Chathuranga <chathuranga.jayaneththi@gmail.com>2013-07-12 07:38:26 +0400
committerKasun Chathuranga <chathuranga.jayaneththi@gmail.com>2013-07-12 07:38:26 +0400
commitf498b59af7b21acee7946f575ce20f92dbeb906c (patch)
tree2e3189c74ae2b23d959cc8237739097fe0699f35 /view_create.php
parentbb6d69ab26c45429d51dfdce943cda3527997227 (diff)
Fix syntax error in generated sql. Add required hidden inputs to properly execute view creation
Diffstat (limited to 'view_create.php')
-rw-r--r--view_create.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/view_create.php b/view_create.php
index 88c453a5ef..f6314fb4e7 100644
--- a/view_create.php
+++ b/view_create.php
@@ -75,7 +75,7 @@ if (isset($_REQUEST['createview']) || isset($_REQUEST['alterview'])) {
if (isset($_REQUEST['view']['with'])) {
if (in_array($_REQUEST['view']['with'], $view_with_options)) {
- $sql_query .= $sep . ' WITH ' . $_REQUEST['view']['with'];
+ $sql_query .= $sep . ' WITH ' . $_REQUEST['view']['with'] . ' CHECK OPTION';
}
}
@@ -256,15 +256,17 @@ $htmlString .= '</table>'
if (! isset($_REQUEST['ajax_dialog'])) {
$htmlString .= '<fieldset class="tblFooters">'
- . '<input type="submit" name="'
+ . '<input type="hidden" name="'
. ($view['operation'] == 'create' ? 'createview' : 'alterview' )
- . '" value="' . __('Go') . '" />'
+ . '" value="1" />'
+ . '<input type="submit" name="" value="' . __('Go') . '" />'
. '</fieldset>';
} else {
$htmlString .= '<input type="hidden" name="'
. ($view['operation'] == 'create' ? 'createview' : 'alterview' )
. '" value="1" />'
- . '<input type="hidden" name="ajax_dialog" value="1" />';
+ . '<input type="hidden" name="ajax_dialog" value="1" />'
+ . '<input type="hidden" name="ajax_request" value="1" />';
}
$htmlString .= '</form>'