Commit 1a4cd7d3 authored by Danilo Trombino's avatar Danilo Trombino
Browse files

[Fix] Fixed Error modal on table widget loading +

[Fix] Widget Html - Added default precision
parent 42822d8c
......@@ -283,7 +283,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
//Replacers
$scope.calcReplacer = function(match,p1,precision){
$scope.calcReplacer = function(match,p1,precision = 2){
return (precision && !isNaN(p1))? eval(p1).toFixed(precision) : eval(p1);
}
......
......@@ -316,7 +316,7 @@ angular.module("cockpitModule").service("cockpitModule_datasetServices",function
angular.forEach(sheet.widgets,function(widget){
if(widget.dataset && widget.dataset.dsId){
var actualDs=ds.getDatasetById(widget.dataset.dsId);
var selectedColumnsDs = (typeof widget.content.columnSelectedOfDataset == 'object') ? widget.content.columnSelectedOfDataset[widget.dataset.dsId] : widget.content.columnSelectedOfDataset;
var selectedColumnsDs = (widget.content.columnSelectedOfDataset instanceof Array) ? widget.content.columnSelectedOfDataset : widget.content.columnSelectedOfDataset[widget.dataset.dsId];
// angular.forEach(widget.content.columnSelectedOfDataset,function(widgetColumn){
angular.forEach(selectedColumnsDs,function(widgetColumn){
var isWidgetColumnMatching = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment