[FIX] breakage when trying to reload a just-saved exports list
bzr revid: xmo@openerp.com-20110905153255-g2apg93e6gvmuthh
This commit is contained in:
@@ -145,15 +145,11 @@ openerp.web.DataExport = openerp.web.Dialog.extend({
|
||||
return [0, 0, {name: field}];
|
||||
})
|
||||
}, function (export_list_id) {
|
||||
if (!export_list_id) {
|
||||
if (!export_list_id.result) {
|
||||
return;
|
||||
}
|
||||
if (self.$element.find("#saved_export_list").length > 0) {
|
||||
self.$element.find("#saved_export_list").append(
|
||||
new Option(value, export_list_id));
|
||||
} else {
|
||||
self.show_exports_list();
|
||||
}
|
||||
self.$element.find("#saved_export_list").append(
|
||||
new Option(value, export_list_id.result));
|
||||
if (self.$element.find("#saved_export_list").is(":hidden")) {
|
||||
self.show_exports_list();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user