MSD-15: If the mysql user is changed in the database panel (tab database) the menu shows the right list of databases now.
Dieser Commit ist enthalten in:
Ursprung
870fdc667d
Commit
7deb0249dd
2 geänderte Dateien mit 11 neuen und 1 gelöschten Zeilen
|
@ -182,6 +182,14 @@ class ConfigController extends Zend_Controller_Action
|
|||
array_combine($databases, $databases)
|
||||
);
|
||||
|
||||
// set dynamic actual database if it's changed in the panel
|
||||
if ($this->_request->isPost()) {
|
||||
$actualDb = $this->view->config->get('dynamic.dbActual');
|
||||
if (isset($_POST['defaultDb']) && ($_POST['defaultDb'] != $actualDb)) {
|
||||
$this->view->config->set('dynamic.dbActual', $_POST['defaultDb']);
|
||||
}
|
||||
}
|
||||
|
||||
return $formDb;
|
||||
}
|
||||
|
||||
|
|
|
@ -133,12 +133,14 @@ $this->jQuery()->onLoadCaptureEnd();
|
|||
|
||||
<div id="selectConfig">
|
||||
<form action="<?php echo $this->baseUrl();?>/index/selectdb" method="post" id="formSelectDb">
|
||||
<fieldset id="dbSelect"><legend><?php echo$this->lang->L_CHOOSE_DB;?>:</legend>
|
||||
<fieldset id="dbSelect"><legend><?php echo $this->lang->L_CHOOSE_DB;?>:</legend>
|
||||
<input type ="hidden" name="lastController" value="<?php echo $this->controller;?>" />
|
||||
<input type ="hidden" name="lastAction" value="<?php echo $this->action;?>" />
|
||||
<?php if (count($this->databases) > 0 ) { ?>
|
||||
<select name="selectedDb" id="selectedDb" style="width:157px;" onchange="this.form.submit()">
|
||||
<?php
|
||||
$dbAdapter = Msd_Db::getAdapter();
|
||||
$this->databases = $dbAdapter->getDatabaseNames();
|
||||
foreach ($this->databases as $db) {
|
||||
echo '<option value="'.base64_encode($db).'"';
|
||||
if ($db == $this->config->get('dynamic.dbActual')) {
|
||||
|
|
Laden …
In neuem Issue referenzieren