Fix a formatting issue in View/Edit tool generated SQL where some filters are applied. #8254

pull/8303/head
Rohit Bhati 2024-12-30 11:56:24 +05:30 committed by GitHub
parent 92e531db02
commit bcd6f3f429
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
role: selectedConn.role,
password: password,
dbname: selectedConn.database_name
} : JSON.stringify(qtState.params.sql_filter))
} : qtState.params.sql_filter)
.then(()=>{
setQtStatePartial({
connected: true,

View File

@ -188,7 +188,7 @@ function showFilterDialog(pgBrowser, item, queryToolMod, transId,
let helpUrl = url_for('help.static', {'filename': 'viewdata_filter.html'});
let okCallback = function() {
queryToolMod.launch(transId, gridUrl, false, queryToolTitle, {sql_filter: schema.sessData.filter_sql});
queryToolMod.launch(transId, gridUrl, false, queryToolTitle, {sql_filter: JSON.stringify(schema.sessData.filter_sql)});
};
pgBrowser.Events.trigger('pgadmin:utility:show', item,