fix: Prevent task cloning from cloneing challenge object

fixes #7435
closes #7451
This commit is contained in:
Blade Barringer
2016-05-23 21:13:35 -05:00
parent a099c1b3b5
commit 770ffe93fc

View File

@@ -1,6 +1,6 @@
'use strict';
var TASK_KEYS_TO_REMOVE = ['_id', 'completed', 'date', 'dateCompleted', 'history', 'id', 'streak', 'createdAt'];
var TASK_KEYS_TO_REMOVE = ['_id', 'completed', 'date', 'dateCompleted', 'history', 'id', 'streak', 'createdAt', 'challenge'];
angular.module('habitrpg')
.factory('Tasks', ['$rootScope', 'Shared', '$http',