Discussion
Best way to be notified of a card deletion
I'm implementing a mashup that adds some information to some views that uses the cardsChanged
method available in the Board module tp3/mashups/board
to get callbacks when a card is moved or changed and update the extra information accordingly. However, I don't get a callback when a card is deleted. Is there another listener I should use for detecting card deletions?
Incidentally, I also discovered a bug when trying to use the cardsChanged
method originally (at least in my version 3.8.10.26720). The call to boardUtils.isCardReBuildOperation
was passing an object that was not being properly handled by the subsequent call to getOperationLocation
. In my version getOperationLocation
expected to receive an object with an items
field that was assumed to be an array with at least one element that could contain the location
field. However, cardsChaged
was passing down a flat object that had the location
field at the root of the object. I've worked around this, but wanted to report it in case it hasn't been fixed yet.