webdetails/cdf — Issue #2: doQuery function with error (file Dashboards.js)
Author: rafaelpsouza
Created: 2011-12-14 19:53:26+00:00
State: open

When fetchData is called only with callback argument and _callback field is not set, the 'QueryNotInitialized' is launched.

Reason (line 1537):

if (typeof _callback != 'function') { //Teste somente o field quando deveria testar o argumento da função
throw 'QueryNotInitialized';
}

Patch (line 1536):
var doQuery = function(outsideCallback){
var url;
var queryDefinition;
var callback = (outsideCallback ? outsideCallback : _callback);
if (typeof callback != 'function') {
throw 'QueryNotInitialized';
}