diff --git a/docs/en_US/release_notes_5_1.rst b/docs/en_US/release_notes_5_1.rst index 48c01cf3b..0a02c1d5f 100644 --- a/docs/en_US/release_notes_5_1.rst +++ b/docs/en_US/release_notes_5_1.rst @@ -39,4 +39,5 @@ Bug fixes | `Issue #6279 `_ - Ensure that the venv activation scripts have the correct path in them on Linux. | `Issue #6281 `_ - Fixed an issue where schema diff showing wrong SQL when comparing triggers with different when clause. | `Issue #6286 `_ - Ensure that the template database should be visible while creating the database. +| `Issue #6292 `_ - Fixed string index out of range error where the dependent tab is in focus and selecting any publication or table. | `Issue #6294 `_ - Fixed an issue where the dependent tab throwing an error when selecting any login/group role. diff --git a/web/pgadmin/browser/utils.py b/web/pgadmin/browser/utils.py index 5dd361c28..312b0ee17 100644 --- a/web/pgadmin/browser/utils.py +++ b/web/pgadmin/browser/utils.py @@ -639,7 +639,8 @@ class PGChildNodeView(NodeView): # if type is present in the types dictionary, but it's # value is None then it requires special handling. if type_str[0] == 'r': - if (type_str[1].isdigit() and int(type_str[1]) > 0) or \ + if (len(type_str) > 1 and type_str[1].isdigit() and + int(type_str[1]) > 0) or \ (len(type_str) > 2 and type_str[2].isdigit() and int(type_str[2]) > 0): type_name = 'column'