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

This commit is contained in:
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, role: selectedConn.role,
password: password, password: password,
dbname: selectedConn.database_name dbname: selectedConn.database_name
} : JSON.stringify(qtState.params.sql_filter)) } : qtState.params.sql_filter)
.then(()=>{ .then(()=>{
setQtStatePartial({ setQtStatePartial({
connected: true, 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 helpUrl = url_for('help.static', {'filename': 'viewdata_filter.html'});
let okCallback = function() { 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, pgBrowser.Events.trigger('pgadmin:utility:show', item,