diff options
author | Kasun Chathuranga <chathuranga.jayaneththi@gmail.com> | 2013-07-12 08:42:27 +0400 |
---|---|---|
committer | Kasun Chathuranga <chathuranga.jayaneththi@gmail.com> | 2013-07-12 08:42:27 +0400 |
commit | e1ec1d24cecdd15cae75226339c66294851630ab (patch) | |
tree | 2a399821bf1a6503cabbebd229b27d997638f8b4 /view_create.php | |
parent | f2e214247c08c46eb65ad6c241f502dad1d51261 (diff) |
Allow setting view name only when creating a view
Diffstat (limited to 'view_create.php')
-rw-r--r-- | view_create.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/view_create.php b/view_create.php index f9d2ee246d..d7689ab089 100644 --- a/view_create.php +++ b/view_create.php @@ -216,10 +216,16 @@ foreach ($view_sql_security_options as $option) { $htmlString .= '<select>' . '</td></tr>'; -$htmlString .= '<tr><td>' . __('VIEW name') . '</td>' - . '<td><input type="text" size="20" name="view[name]" onfocus="this.select()"' - . ' value="' . htmlspecialchars($view['name']) . '" />' - . '</td></tr>'; +if ($view['operation'] == 'create') { + $htmlString .= '<tr><td>' . __('VIEW name') . '</td>' + . '<td><input type="text" size="20" name="view[name]" onfocus="this.select()"' + . ' value="' . htmlspecialchars($view['name']) . '" />' + . '</td></tr>'; +} else { + $htmlString .= '<tr><td><input type="hidden" name="view[name]"' + . ' value="' . htmlspecialchars($view['name']) . '" />' + . '</td></tr>'; +} $htmlString .= '<tr><td>' . __('Column names') . '</td>' . '<td><input type="text" maxlength="100" size="50" name="view[column_names]"' |