[FIX] ability to backup databases in case listing databases is forbidden (via --no-database-list on the server)
lp bug: https://launchpad.net/bugs/939428 fixed bzr revid: xmo@openerp.com-20120223133937-3115jyzjtbzequbq
This commit is contained in:
parent
3be394de8a
commit
50853cbaac
|
@ -449,7 +449,7 @@ openerp.web.Database = openerp.web.OldWidget.extend(/** @lends openerp.web.Datab
|
|||
submitHandler: function (form) {
|
||||
var $form = $(form),
|
||||
fields = $form.serializeArray(),
|
||||
$db_list = $form.find('select[name=drop_db]'),
|
||||
$db_list = $form.find('[name=drop_db]'),
|
||||
db = $db_list.val();
|
||||
|
||||
if (!confirm("Do you really want to delete the database: " + db + " ?")) {
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
<option t-att-value="db"><t t-esc="db"/></option>
|
||||
</t>
|
||||
</select>
|
||||
<input t-if="!db_list" name="drop_db" class="required"
|
||||
<input t-if="!db_list" name="backup_db" class="required"
|
||||
type="text" autofocus="autofocus"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue