Ensure that the Dictionaries drop-down shows all the dictionaries in the FTS configuration dialog. Fixes #5429

This commit is contained in:
Akshay Joshi committed 2020-08-04 15:48:20 +05:30
1 parent 43e127de31
commit 5ce2773658
2 files changed
+5

No files matched your search

@@ -34,6 +34,7 @@ define('pgadmin.node.fts_configuration', [
id: 'dictname', label: gettext('Dictionaries'), type: 'text', group:null,
cellHeaderClasses:'width_percent_50', editable: true,
cell:Backgrid.Extension.MultiSelectAjaxCell, url: 'dictionaries',
cache_level:'fts_configuration', cache_node:'fts_configuration',
}],
// Validation for token and dictionary list
validate: function() {
@@ -108,6 +109,9 @@ define('pgadmin.node.fts_configuration', [
pgAdmin.Browser.Nodes[cache_node])
|| node;
// Clear the cache to get the latest dictionaries and parsers.
cache_node.clear_cache(this);
/*
* We needs to check, if we have already cached data
* for this url. If yes - use it, and do not bother about