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(); },
|
type: 'text', disabled: function(m) { return !m.isNew(); },
|
||||||
group: 'Definition', mode: ['create'],
|
group: 'Definition', mode: ['create'],
|
||||||
control: 'node-ajax-options',
|
control: 'node-ajax-options',
|
||||||
options: function() {
|
options: function(control) {
|
||||||
|
var srcTyp = control.model.get('srctyp');
|
||||||
var srcTyp = this.model.get('srctyp');
|
var trgtyp = control.model.get('trgtyp');
|
||||||
var trgtyp = this.model.get('trgtyp');
|
|
||||||
var res = [];
|
var res = [];
|
||||||
|
|
||||||
if(srcTyp != undefined && srcTyp != '' &&
|
if(srcTyp != undefined && srcTyp != '' &&
|
||||||
trgtyp != undefined && trgtyp != '')
|
trgtyp != undefined && trgtyp != '')
|
||||||
{
|
{
|
||||||
var node = this.field.get('schema_node'),
|
var node = control.field.get('schema_node'),
|
||||||
_url = node.generate_url.apply(
|
_url = node.generate_url.apply(
|
||||||
node, [
|
node, [
|
||||||
null, 'get_functions', this.field.get('node_data'), false,
|
null, 'get_functions', control.field.get('node_data'), false,
|
||||||
this.field.get('node_info')
|
control.field.get('node_info')
|
||||||
]);
|
]);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
Loading…
Reference in New Issue
Block a user