bug #3383572 [interface] Cannot execute saved query
When the Go button related to the "Run SQL query" section is pressed, avoid transmitting the value of id_bookmark from the "Bookmarked SQL query" section; otherwise import.php would think that it needs to do a bookmark action instead of executing the query.
This commit is contained in:
@@ -8,6 +8,7 @@ phpMyAdmin - ChangeLog
|
||||
- bug #3399951 [export] Config for export compression not used
|
||||
- bug #3400690 [privileges] DB-specific privileges won't submit
|
||||
- bug #3410604 [config] Configuration storage incorrect suggested table name
|
||||
- bug #3383572 [interface] Cannot execute saved query
|
||||
|
||||
3.4.5.0 (2011-09-14)
|
||||
- bug #3375325 [interface] Page list in navigation frame looks odd
|
||||
|
12
js/sql.js
12
js/sql.js
@@ -261,10 +261,16 @@ $(document).ready(function() {
|
||||
* @memberOf jQuery
|
||||
* @name sqlqueryform_submit
|
||||
*/
|
||||
$("#sqlqueryform.ajax").live('submit', function(event) {
|
||||
$("#sqlqueryform.ajax input:submit").live('click', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
$form = $(this);
|
||||
var $form = $(this).closest("form");
|
||||
var clicked_button = $(this).attr('id');
|
||||
|
||||
if ('button_submit_query' == clicked_button) {
|
||||
$form.find("select[name=id_bookmark]").attr("value","");
|
||||
}
|
||||
|
||||
if (! checkSqlQuery($form[0])) {
|
||||
return false;
|
||||
}
|
||||
@@ -276,7 +282,7 @@ $(document).ready(function() {
|
||||
|
||||
PMA_prepareForAjaxRequest($form);
|
||||
|
||||
$.post($(this).attr('action'), $(this).serialize() , function(data) {
|
||||
$.post($form.attr('action'), $form.serialize() , function(data) {
|
||||
if(data.success == true) {
|
||||
// fade out previous messages, if any
|
||||
$('.success').fadeOut();
|
||||
|
@@ -381,7 +381,7 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, $delimiter
|
||||
.'</label>' . "\n";
|
||||
|
||||
echo '</div>' . "\n";
|
||||
echo '<input type="submit" name="SQL" tabindex="200" value="' . __('Go') . '" />'
|
||||
echo '<input type="submit" id="button_submit_query" name="SQL" tabindex="200" value="' . __('Go') . '" />'
|
||||
."\n";
|
||||
echo '<div class="clearfloat"></div>' . "\n";
|
||||
echo '</fieldset>' . "\n";
|
||||
@@ -451,7 +451,7 @@ function PMA_sqlQueryFormBookmark()
|
||||
echo '</fieldset>' . "\n";
|
||||
|
||||
echo '<fieldset id="bookmarkoptionsfooter" class="tblFooters">' . "\n";
|
||||
echo '<input type="submit" name="SQL" value="' . __('Go') . '" />';
|
||||
echo '<input type="submit" name="SQL" id="button_submit_bookmark" value="' . __('Go') . '" />';
|
||||
echo '<div class="clearfloat"></div>' . "\n";
|
||||
echo '</fieldset>' . "\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user