N°2735 Fix dashlet id duplicates when moving dashlet from one cell to another

This commit is contained in:
Pierre Goiffon
2020-02-25 15:43:20 +01:00
parent 92ae0e72e1
commit feae36e5b8

View File

@@ -144,8 +144,8 @@ $(function()
add_dashlet: function(options)
{
var $container = options.container,
iNumberOfExistingDashletInCell = $container.children("div.dashlet").length,
sTempDashletId = iNumberOfExistingDashletInCell+1;
iNumberOfExistingDashletsInDashboard = $container.closest("table").find("div.dashlet").length,
sTempDashletId = iNumberOfExistingDashletsInDashboard+1;
this.get_dashletid_ajax(options, sTempDashletId);
},