nitrotasks / nitro

The beautiful way to get things done.
https://nitrotasks.com
GNU Affero General Public License v3.0
517 stars 65 forks source link

drag & drop to same list removes task from list #234

Closed stesie closed 11 years ago

stesie commented 11 years ago

hey there,

currently if you drag whatever task and drop it on the same list, nothing seems to happen (as expected). However if you re-render the task list (e.g. by clicking the list item again) the task isn't listed anymore. The task actually is still valid (and you see it in the all tasks list), it's just removed from the (current/target) list.

This change adds a check comparing list ids on List.moveTask and simply returns if they are equal

cheers stesie