Ensure that macros should be run on the older version of Safari and Chrome. Fixes #5911

pull/36/head
Khushboo Vashi 2020-10-15 15:59:53 +05:30 committed by Akshay Joshi
parent 98817a718f
commit 6addd207af
3 changed files with 24 additions and 2 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_4_28
release_notes_4_27
release_notes_4_26
release_notes_4_25
@ -54,4 +55,4 @@ notes for it.
release_notes_1_3
release_notes_1_2
release_notes_1_1
release_notes_1_0
release_notes_1_0

View File

@ -0,0 +1,20 @@
************
Version 4.28
************
Release date: 2020-11-12
This release contains a number of bug fixes and new features since the release of pgAdmin4 4.27.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #5911 <https://redmine.postgresql.org/issues/5911>`_ - Ensure that macros should be run on the older version of Safari and Chrome.

View File

@ -2801,7 +2801,8 @@ define('tools.querytool', [
.done(function(res) {
if (res) {
// Replace the place holder
let query = res.sql.replaceAll('$SELECTION$', self.gridView.query_tool_obj.getSelection());
const regex = /\$SELECTION\$/gi;
let query = res.sql.replace(regex, self.gridView.query_tool_obj.getSelection());
const executeQuery = new ExecuteQuery.ExecuteQuery(self, pgAdmin.Browser.UserManagement);
executeQuery.poll = pgBrowser.override_activity_event_decorator(executeQuery.poll).bind(executeQuery);