mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed 'Location cannot be empty' error when open Tablespace properties. Fixes #4134
This commit is contained in:
committed by
Akshay Joshi
parent
0b47d1dbf6
commit
d96f453e7f
@@ -389,8 +389,9 @@ define('pgadmin.node.tablespace', [
|
||||
|| String(this.get('name')).replace(/^\s+|\s+$/g, '') == '') {
|
||||
msg = gettext('Name cannot be empty.');
|
||||
this.errorModel.set('name', msg);
|
||||
} else if (_.isUndefined(this.get('spclocation'))
|
||||
|| String(this.get('spclocation')).replace(/^\s+|\s+$/g, '') == '') {
|
||||
} else if (this.isNew() &&
|
||||
(_.isUndefined(this.get('spclocation'))
|
||||
|| String(this.get('spclocation')).replace(/^\s+|\s+$/g, '') == '')) {
|
||||
msg = gettext('Location cannot be empty.');
|
||||
this.errorModel.set('spclocation', msg);
|
||||
this.errorModel.unset('name');
|
||||
|
||||
Reference in New Issue
Block a user