mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that 'With OID' option should be disabled while taking backup of database server version 12 and above. Fixes #4840
This commit is contained in:
@@ -516,6 +516,14 @@ define([
|
||||
deps: ['use_column_inserts', 'use_insert_commands'],
|
||||
group: gettext('Miscellaneous'),
|
||||
disabled: function(m) {
|
||||
var t = pgBrowser.tree,
|
||||
i = t.selected(),
|
||||
d = i && i.length == 1 ? t.itemData(i) : undefined,
|
||||
s = pgBrowser.Nodes[d._type].getTreeNodeHierarchy(i)['server'];
|
||||
|
||||
if (s.version >= 120000)
|
||||
return true;
|
||||
|
||||
if (m.get('use_column_inserts') || m.get('use_insert_commands')) {
|
||||
setTimeout(function() { m.set('with_oids', false); }, 10);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user