search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

trying to remove a resource row removes incorrect resource cells

Asked by DG
11 years ago.

Hi Dan,

I have added a functionality to remove a resource from the scheduler control by clicking on an icon in the resource header.

How I accomplish this is by iterating over dps.resources array to find the resource by its id, and then doing a dps.resources.splice() to remove that particular resource from the array, and then calling the dps.update() method to update the scheduler (to show the remaining resources).

It results in the removal of one resource row from the control.

But what I noticed today is that only the correct resource header is removed after the update; the row of cells that is removed is incorrect. Always the last row of cells is removed, whichever resource i try to remove.

Please can you confirm this bug?

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.