Fix a formatting issue in View/Edit tool generated SQL where some filters are applied. #8254
parent
92e531db02
commit
bcd6f3f429
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue