mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Tasks sort delete fix (#8526)
* Fixed task sorting * Add sync when group task is deleted * Added sync when user tasks reorder * Abstracted show logic and removed task grouping from group page * Fixed scope typo * Localized the default challenge short name * Removed default shortName * Fixed test for challenge shortName
This commit is contained in:
@@ -158,7 +158,7 @@ async function _addTaskFn (challenge, tasks, memberId) {
|
||||
|
||||
tasks.forEach(chalTask => {
|
||||
let userTask = new Tasks[chalTask.type](Tasks.Task.sanitize(syncableAttrs(chalTask)));
|
||||
userTask.challenge = {taskId: chalTask._id, id: challenge._id};
|
||||
userTask.challenge = {taskId: chalTask._id, id: challenge._id, shortName: challenge.shortName};
|
||||
userTask.userId = memberId;
|
||||
userTask.notes = chalTask.notes; // We want to sync the notes when the task is first added to the challenge
|
||||
|
||||
|
||||
Reference in New Issue
Block a user