diff --git a/docs/en_US/release_notes_4_13.rst b/docs/en_US/release_notes_4_13.rst index a0a3a38ef..bc21dfeca 100644 --- a/docs/en_US/release_notes_4_13.rst +++ b/docs/en_US/release_notes_4_13.rst @@ -22,4 +22,5 @@ Bug fixes | `Issue #2706 `_ - Added ProjectSet icon for explain module. | `Issue #2828 `_ - Added Gather Merge, Named Tuple Store Scan and Table Function Scan icon for explain module. | `Issue #4643 `_ - Fix Truncate option deselect issue for compound triggers. -| `Issue #4644 `_ - Fix length and precision enable/disable issue when changing the data type for Domain node. \ No newline at end of file +| `Issue #4644 `_ - Fix length and precision enable/disable issue when changing the data type for Domain node. +| `Issue #4650 `_ - Fix SQL tab issue for Views. It's a regression of compound triggers. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/__init__.py index cfefa5314..4bc357c83 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/__init__.py @@ -879,6 +879,7 @@ class ViewNode(PGChildNodeView, VacuumSettings): Get all compound trigger nodes associated with view node, generate their sql and render into sql tab """ + SQL_data = '' if self.manager.server_type == 'ppas' \ and self.manager.version >= 120000: @@ -888,7 +889,6 @@ class ViewNode(PGChildNodeView, VacuumSettings): # Define template path self.ct_trigger_temp_path = 'compound_triggers' - SQL_data = '' SQL = render_template("/".join( [self.ct_trigger_temp_path, 'sql/{0}/#{1}#/nodes.sql'.format( @@ -949,7 +949,7 @@ class ViewNode(PGChildNodeView, VacuumSettings): SQL_data += '\n' SQL_data += SQL - return SQL_data + return SQL_data def get_trigger_sql(self, vid): """