mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added missing validation for data type. Fixes #6407
This commit is contained in:
parent
11c541adc6
commit
4842d589a6
@ -1032,6 +1032,16 @@ define('pgadmin.node.type', [
|
||||
}
|
||||
}
|
||||
|
||||
// For Nested Table and Varying Array
|
||||
if(this.get('typtype') == 'N' || this.get('typtype') == 'V') {
|
||||
if (_.isUndefined(this.get('type')) || _.isNull(this.get('type')) ||
|
||||
String(this.get('type')).replace(/^\s+|\s+$/g, '') == '') {
|
||||
msg = gettext('Data type cannot be empty.');
|
||||
this.errorModel.set('type', msg);
|
||||
return msg;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
// We will disable everything if we are under catalog node
|
||||
|
Loading…
Reference in New Issue
Block a user