Fixed ajax-loaded users privileges pages
This commit is contained in:
parent
4db80fc880
commit
e27fd3394a
@ -1825,6 +1825,7 @@ function PMA_getExtraDataForAjaxBehavior($password, $link_export, $sql_query,
|
||||
}
|
||||
}
|
||||
|
||||
$extra_data = array();
|
||||
if (strlen($sql_query)) {
|
||||
$extra_data['sql_query']
|
||||
= PMA_Util::getMessage(null, $sql_query);
|
||||
@ -2987,9 +2988,6 @@ function PMA_getHtmlForDisplayUserOverviewPage($link_edit, $pmaThemeImage,
|
||||
$flushnote->addParam('</a>', false);
|
||||
$html_output .= $flushnote->getDisplay();
|
||||
}
|
||||
if ($GLOBALS['is_ajax_request']) {
|
||||
exit;
|
||||
}
|
||||
return $html_output;
|
||||
}
|
||||
}
|
||||
|
||||
@ -378,6 +378,7 @@ list($link_edit, $link_revoke, $link_export)
|
||||
* Flush Privileges, show $message and exit.
|
||||
*/
|
||||
if ($GLOBALS['is_ajax_request']
|
||||
&& empty($_REQUEST['ajax_page_request'])
|
||||
&& ! isset($_REQUEST['export'])
|
||||
&& (! isset($_REQUEST['submit_mult']) || $_REQUEST['submit_mult'] != 'export')
|
||||
&& (! isset($_REQUEST['adduser']) || $_add_user_error)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user