mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handler and Validator should not allow selecting the empty options. Fixes #6810
This commit is contained in:
parent
d616cb88aa
commit
2265ffc0a7
@ -862,7 +862,7 @@ class ForeignDataWrapperView(PGChildNodeView, SchemaDiffObjectCompare):
|
|||||||
sid: Server ID
|
sid: Server ID
|
||||||
did: Database ID
|
did: Database ID
|
||||||
"""
|
"""
|
||||||
res = [{'label': '', 'value': ''}]
|
res = []
|
||||||
try:
|
try:
|
||||||
sql = render_template("/".join([self.template_path,
|
sql = render_template("/".join([self.template_path,
|
||||||
'validators.sql']),
|
'validators.sql']),
|
||||||
@ -892,7 +892,7 @@ class ForeignDataWrapperView(PGChildNodeView, SchemaDiffObjectCompare):
|
|||||||
sid: Server ID
|
sid: Server ID
|
||||||
did: Database ID
|
did: Database ID
|
||||||
"""
|
"""
|
||||||
res = [{'label': '', 'value': ''}]
|
res = []
|
||||||
try:
|
try:
|
||||||
sql = render_template("/".join([self.template_path,
|
sql = render_template("/".join([self.template_path,
|
||||||
'handlers.sql']),
|
'handlers.sql']),
|
||||||
|
Loading…
Reference in New Issue
Block a user