From b3ca172f3a193dfad2602ff1bcbf69ec776d8652 Mon Sep 17 00:00:00 2001 From: Rahul Shirsat Date: Wed, 20 Jan 2021 12:39:12 +0530 Subject: [PATCH] Fixed an issue of deleting records when the user tries to delete multiple records. Fixes #6098 --- docs/en_US/release_notes_4_30.rst | 1 + web/pgadmin/tools/sqleditor/static/js/sqleditor.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_4_30.rst b/docs/en_US/release_notes_4_30.rst index 2d08cb478..7874bd7c8 100644 --- a/docs/en_US/release_notes_4_30.rst +++ b/docs/en_US/release_notes_4_30.rst @@ -40,6 +40,7 @@ Bug fixes | `Issue #6077 `_ - Fixed accessibility issues in various dialogs. | `Issue #6084 `_ - Fixed TypeError exception in schema diff when selected any identical object. | `Issue #6096 `_ - Updated deployment documentation, refer correctly to uWSGI where Gunicorn had been referenced. +| `Issue #6098 `_ - Fixed an issue of deleting records when the user tries to delete multiple records. | `Issue #6120 `_ - Ensure that the user should be able to specify an older date for the account expiration of the role/user. | `Issue #6121 `_ - Fixed an issue where the database list in the new connection window is not visible. | `Issue #6122 `_ - Added informative message when there is no difference found for schema diff. diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js index 05deebc41..b374a53b0 100644 --- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js @@ -3551,7 +3551,7 @@ define('tools.querytool', [ } else { dataView.beginUpdate(); for (var j = 0; j < rows.length; j++) { - var item = grid.getDataItem(rows[j]); + var item = grid.getData().getItemById(rows[j]); data.push(item); dataView.deleteItem(item[self.client_primary_key]); }