mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Resolved an issue - fetching the source, and target type functions in
the CAST module. Make the changes in the CAST module too for the
changes done in the NodeAjaxOptionsControl in the commit-id:
944bdbb96c
.
We've changed the signature (arguments) of the 'options' & 'transform'
functions.
This commit is contained in:
parent
085ce50545
commit
244f5d59d2
@ -177,20 +177,19 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
||||
type: 'text', disabled: function(m) { return !m.isNew(); },
|
||||
group: 'Definition', mode: ['create'],
|
||||
control: 'node-ajax-options',
|
||||
options: function() {
|
||||
|
||||
var srcTyp = this.model.get('srctyp');
|
||||
var trgtyp = this.model.get('trgtyp');
|
||||
options: function(control) {
|
||||
var srcTyp = control.model.get('srctyp');
|
||||
var trgtyp = control.model.get('trgtyp');
|
||||
var res = [];
|
||||
|
||||
if(srcTyp != undefined && srcTyp != '' &&
|
||||
trgtyp != undefined && trgtyp != '')
|
||||
{
|
||||
var node = this.field.get('schema_node'),
|
||||
var node = control.field.get('schema_node'),
|
||||
_url = node.generate_url.apply(
|
||||
node, [
|
||||
null, 'get_functions', this.field.get('node_data'), false,
|
||||
this.field.get('node_info')
|
||||
null, 'get_functions', control.field.get('node_data'), false,
|
||||
control.field.get('node_info')
|
||||
]);
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
|
Loading…
Reference in New Issue
Block a user