mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Task interaction fixes (#8306)
* Fixed interacting with a broken challenge * Added fix for users using open tasks in edit mode
This commit is contained in:
@@ -42,6 +42,11 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
||||
User.addTask({
|
||||
body: tasks,
|
||||
});
|
||||
|
||||
if (User.user.preferences.newTaskEdit) {
|
||||
var taskToEdit = tasks[tasks.length -1];
|
||||
$scope.editTask(taskToEdit, User.user, Shared.taskClasses(taskToEdit, User.user.filters, User.user.preferences.dayStart, User.user.lastCron, listDef.showCompleted, main));
|
||||
}
|
||||
}
|
||||
|
||||
$scope.addTask = function(listDef) {
|
||||
|
||||
Reference in New Issue
Block a user