Ensure that the template database should be visible while creating the database. Fixes #6286

This commit is contained in:
Nikhil Mohite 2021-03-04 17:48:52 +05:30 committed by Akshay Joshi
parent 778e0cd402
commit d70dea5072
2 changed files with 2 additions and 1 deletions

View File

@ -33,3 +33,4 @@ Bug fixes
| `Issue #6260 <https://redmine.postgresql.org/issues/6260>`_ - Fixed an issue where the 'Create Slot' option is disabled in case of the same IP/host provided but the port is different.
| `Issue #6272 <https://redmine.postgresql.org/issues/6272>`_ - Fixed an issue where the user is not able to change the connection in Query Tool when any SQL file is opened.
| `Issue #6281 <https://redmine.postgresql.org/issues/6281>`_ - Fixed an issue where schema diff showing wrong SQL when comparing triggers with different when clause.
| `Issue #6286 <https://redmine.postgresql.org/issues/6286>`_ - Ensure that the template database should be visible while creating the database.

View File

@ -343,7 +343,7 @@ class DatabaseView(PGChildNodeView):
SQL = render_template(
"/".join([self.template_path, self._NODES_SQL]),
last_system_oid=0,
show_system_objects=self.blueprint.show_system_objects,
show_system_objects=True,
)
status, rset = self.conn.execute_dict(SQL)